Run a query to match first 5 characters of canadian postal codes

rubalgupta24

New Member
Joined
Mar 14, 2021
Messages
3
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
  2. Mobile
Hi everyone
I always got help whenever I need some help in access or excel even without posting anything but today
I need help to run a query which will match first 5 characters of Canadian postal codes from two different fields in MS access . It's kind of urgent I am stuck due to this plz help me
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
In your JOIN ... ON statement do something like...

SQL:
ON LEFT(table1.postalCode,5) = LEFT(table2.postalCode,5)

Should work. Not sure about performance. If there's a better way, someone else will no doubt post it. ;)
 
Upvote 0
In your JOIN ... ON statement do something like...

SQL:
ON LEFT(table1.postalCode,5) = LEFT(table2.postalCode,5)

Should work. Not sure about performance. If there's a better way, someone else will no doubt post it. ;)
No I already tried this one its not working
 
Upvote 0
You will probably need to post some sample data. Perhaps you aren't using the right words to describe the problem so try to give a more clear idea (matching the first five characters of any string is solved as JonXL posted in his answer - it is likely that there is more to the problem than what you have said).
 
Upvote 0
Can you use a function in a join statement as opposed to a WHERE clause?
 
Upvote 0
Thanks everyone the problem was I'm my file first expression was right
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top