How do you use a list in a query so you can sort the list based on a linked table?
1. My initial query returns phone numbers with inconsistent structures. Example:
(555)-555-5678
666-555-5678
(444)555.5678
1-888-555-5678
2. I loop through the list and perform a number of cleanup functions so the list looks like this:
555-555-5678
666-555-5678
444-555-5678
888-555-5678
3. Now I need to use this list in a query so I can use the first three digits to look up the area code from an area code table and its linked and be able to sort by the area code. The area code table looks something like this:
ThreeDigitCode AreaID
555 1
666 2
444 1
888 4
I need to put the phone list in the query so I can do a lookup of its areaID and the comparable information in a table that says AreaID 1 is Eastern and its sort position is 1, etc.
Thanks in advance for your advice.
