Link to home
Start Free TrialLog in
Avatar of bill201
bill201

asked on

how to replace a character in a table in access 2013

hi

how can i change - with sql string or vba-  a character in a table to another character, for example i want that in my product table every time that it's find a Apostrophe to change it to a Quotation mark. something like this
replace (ProductName,"'",""")

Open in new window

. but i don't know how update a field with replace function on a query.
Avatar of Sharath S
Sharath S
Flag of United States of America image

UPDATE YourTable
SET replace (ProductName,"'",""");
Avatar of bill201
bill201

ASKER

it's not working

i get an error message syntax error with in update statement
Can you post the exact error message. It is just a simple UPDATE statement.

Reference: http://msdn.microsoft.com/en-us/library/office/bb221186(v=office.12).aspx
Avatar of bill201

ASKER

hi

this is the code
UPDATE IskitReportTemp
SET replace (ProductName,"'",""");

Open in new window


and the error message it's like i wrote "syntax error with in update statement" i don't get more details
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial