AreaCode: (Mid([dbo_accounts!HomePhone],(Len([dbo_accounts!HomePhone])-8)-1,3))
The above works, however, then I attempt a join the field with a US area code table, it tells me there's a data type mismatch.
Hi shubox56,
What is the type of the area code in the code table: Text, Integer, Long, ...
You could use the functions CInt or CLng to convert Text to Integer or Long.
"Numbers" like the area code, telephone-numbers, zip-codes, assurance-numbers, etc., that are not used for any calculation but only for identifying, I always define them as Text/String.
In that case I would download the table, and convert the area code to Text.
Imb.