Well, the problem is, since there are other records in the table that have
that area code as a valid area code, you need a way to update only those that
are incorrect and not affect those that are.
Since the bad ones are in AZ, if you have a State field in your table, you
could filter on that. I was hoping you did not carry formatting in the data
(which is always a bad idea), because it just makes chaning the values a
little more work.
Here is a formula that will change the bad area code with the good one:
In the Update To for the field in the query builder:
For example, bad code is 404, good code is 297
Replace([PhoneField], "(404)", "(297)")
Be sure to filter on something that will include only the Arizona records.
Note the Replace function is not available pre 2000.
faxylady said:
Your right, this should not be that hard.
Yes, it did insert the wrong area code for all the numbers in that group.
Ex. this was a group of Arizona contacts, but my home area code from another
state was inserted. There are other contacts from my home area code in that
field. I am using Access 2000. This field is formatted with 2 parentheses
and a dash. All this should not be necessary to find the code to do an
update query to change area codes.