J
Jeff
Hi,
I have a query in which I am trying to match up zip codes stored in two
different tables. One table, sometimes, has the zip code as a 9 digit number
(xxxxx-xxxx), while the other table ALWAYS has zip codes as a 5 digit number.
I need ALL THE RECORDS from the first table (the one that has 5 and 9 digits
mixed together... and just need to match up a field in the second table... if
the zip code matches.
I tried to use the "LEFT()" function in the criteria field of the query...
but that didn't work because the "matching" occurs before that function is
executed...
Any suggestions? As a little background, table 1 is a table listing all the
sales invoices, with shipping data. Table 2 is a sales territory listing,
with each zip code assigned to a salesman. I need to merge the two... in
order to find out which invoice belongs to which salesman's territory.
Any help would be GREATLY appreciated...
Thanks
I have a query in which I am trying to match up zip codes stored in two
different tables. One table, sometimes, has the zip code as a 9 digit number
(xxxxx-xxxx), while the other table ALWAYS has zip codes as a 5 digit number.
I need ALL THE RECORDS from the first table (the one that has 5 and 9 digits
mixed together... and just need to match up a field in the second table... if
the zip code matches.
I tried to use the "LEFT()" function in the criteria field of the query...
but that didn't work because the "matching" occurs before that function is
executed...
Any suggestions? As a little background, table 1 is a table listing all the
sales invoices, with shipping data. Table 2 is a sales territory listing,
with each zip code assigned to a salesman. I need to merge the two... in
order to find out which invoice belongs to which salesman's territory.
Any help would be GREATLY appreciated...
Thanks