K
kimb via AccessMonster.com
I am trying to figure out a way to have a query search between 2 separate
fields that are both alpha/numeric.
I am trying to match our Canadian offices with specific postal codes in
Canada. Since there are so many postal codes in Canada the table was set up
by ranges. The table is broken down by Province, City and Postal codes. The
Postal codes are listed completely and they are also broken down into the 1st
“3†and the 2nd “3†For example:
(The field names are: Country, Province, City, 1st High, 2nd Low, Whole High,
Whole Low, Office, BLDG)
CA AB CALGARY T2Y T2Y 0A0 9Z9 T2Y0A0 T2Y9Z9 7936 7439
CA AB CALGARY T2Z T2Z 0A0 9Z9 T2Z0A0 T2Z9Z9 7936 7439
This is just a small example(the table has approx 15,000 records), but
basically our Office 7936 falls under the Postal Code range T2Y0A0 AND T2Y9Z9.
The data we receive has a specific address. We need to match their Postal
Code to the Office and Bldg. So, if Jane Doe is at 555 Main street, Calgary
AB, T2Y4R3, we would need a query to recognize that that postal code falls
between T2Y0A0 & T2Y9Z9 and will therefore populate the Office and Bldg
fields with 7936 and 7439.
Please keep in mind that I am not an Access master. Any help would be
GREATLY appreciated. Thanks in advance for your help!
fields that are both alpha/numeric.
I am trying to match our Canadian offices with specific postal codes in
Canada. Since there are so many postal codes in Canada the table was set up
by ranges. The table is broken down by Province, City and Postal codes. The
Postal codes are listed completely and they are also broken down into the 1st
“3†and the 2nd “3†For example:
(The field names are: Country, Province, City, 1st High, 2nd Low, Whole High,
Whole Low, Office, BLDG)
CA AB CALGARY T2Y T2Y 0A0 9Z9 T2Y0A0 T2Y9Z9 7936 7439
CA AB CALGARY T2Z T2Z 0A0 9Z9 T2Z0A0 T2Z9Z9 7936 7439
This is just a small example(the table has approx 15,000 records), but
basically our Office 7936 falls under the Postal Code range T2Y0A0 AND T2Y9Z9.
The data we receive has a specific address. We need to match their Postal
Code to the Office and Bldg. So, if Jane Doe is at 555 Main street, Calgary
AB, T2Y4R3, we would need a query to recognize that that postal code falls
between T2Y0A0 & T2Y9Z9 and will therefore populate the Office and Bldg
fields with 7936 and 7439.
Please keep in mind that I am not an Access master. Any help would be
GREATLY appreciated. Thanks in advance for your help!