J
Jeff
I have a table of a few hundred thousand records that contains address fields
(AddressLine1, AddressLine2, AddressLine3) and in any one of these fields
could be a City, State Zip combination (the city, state zip is all in the
same field, not slpit apart and the zip might be like #####-#### or just
#####).
I also have another table that is a list of zip codes (only in #####
format). I need to find all the records in the main table that have a zip
code that is in the zip code list.
How can I extract just the zip code from the address fields?
I tried using something like Instr(AddressLine2,[1-9][1-9][1-9][1-9][1-9])
to first get the position of the zip then I was going to use Mid() to pull it
out, but it didn't like the [1-9] part. Am I on the right track and maybe I
just have the syntax wrong or is there something completely different I can
try? Thanks.
(AddressLine1, AddressLine2, AddressLine3) and in any one of these fields
could be a City, State Zip combination (the city, state zip is all in the
same field, not slpit apart and the zip might be like #####-#### or just
#####).
I also have another table that is a list of zip codes (only in #####
format). I need to find all the records in the main table that have a zip
code that is in the zip code list.
How can I extract just the zip code from the address fields?
I tried using something like Instr(AddressLine2,[1-9][1-9][1-9][1-9][1-9])
to first get the position of the zip then I was going to use Mid() to pull it
out, but it didn't like the [1-9] part. Am I on the right track and maybe I
just have the syntax wrong or is there something completely different I can
try? Thanks.