Brenda1231
07-24-2002, 12:26 PM
Hi all.
Okay I am trying to update an Access Database using SQL.
I need to change a number of area codes, but leave the rest of the number alone.
In other words the numbers are stored (111)222-3333
This is what I am trying, but it is not working:
UPDATE Employees
SET LEFT$(HomePhone, 5) = '(222)'
WHERE LEFT$(HomePhone, 5) = '(111)';
Any help where I might be going wrong???
Thanks
:(
Okay I am trying to update an Access Database using SQL.
I need to change a number of area codes, but leave the rest of the number alone.
In other words the numbers are stored (111)222-3333
This is what I am trying, but it is not working:
UPDATE Employees
SET LEFT$(HomePhone, 5) = '(222)'
WHERE LEFT$(HomePhone, 5) = '(111)';
Any help where I might be going wrong???
Thanks
:(