Remove Quoations from Names in ACCESS 2013

Huizar

Board Regular
Joined
Aug 11, 2016
Messages
94
My Access table has a column with employee names. Some names have quotation marks and some don't. How can I remove the quotation marks that surround the names on my table? Keep in my mind it's my main table I run to create my queries.


Thanks
 
Hey Joe,

I tried doing the sql but it did not work for me. The field name that I'm using is Full Name so i adjust accordingly. Not sure what i'm doing wrong.
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try:
Code:
UPDATE TableName
SET [Full Name]= Replace([Full Name],Chr(34),"")
 
Last edited:
Upvote 0
Hey Xenou,

it says Syntax Error when I put in SQL. Here is what i put:

UPDATE A01_Workload_t SET;
SET [Full Name]= Replace([Full Name],Chr(34),"")

Thanks
 
Upvote 0
You have an extra word SET and semi-colon at the end of your UPDATE line. Get rid of those.
Code:
[COLOR=#333333]UPDATE A01_Workload_t[/COLOR]
[COLOR=#333333]SET [Full Name]= Replace([Full Name],Chr(34),"")[/COLOR]
 
Upvote 0
Hey Joe,

That worked. I'm curious to know why Access came back came back with the message that it didn't update 17 field(s) due to type conversion failure, 0 record(s) due to lock violations, etc. Would this affect the query i just ran?


Thanks,
 
Upvote 0
If you have null/blank values in your Full Name field, it is telling you cannot update those. You can update your query to ignore those null/blank records, then you won't get those error messages.
Code:
UPDATE A01_Workload_t SET A01_Workload_t.[Full Name] = Replace([Full Name],Chr(34),"")
WHERE A01_Workload_t.[Full Name]<>"" And Not (A01_Workload_t.[Full Name] Is Null);
 
Upvote 0
If you have null/blank values in your Full Name field, it is telling you cannot update those. You can update your query to ignore those null/blank records, then you won't get those error messages.
Code:
UPDATE A01_Workload_t SET A01_Workload_t.[Full Name] = Replace([Full Name],Chr(34),"")
WHERE A01_Workload_t.[Full Name]<>"" And Not (A01_Workload_t.[Full Name] Is Null);



Thanks for your help.
 
Upvote 0
You are welcome!

In working with these kind of UPDATE queries, I find the following methodology typically works best for me.
First, write a simple SELECT query that returns JUST the records you want to update (this is where the criteria comes in). The more you can weed out, the less chance you will get weird error messages you don't care about.
Once you have that, then change it to an UPDATE query.
 
Upvote 0

Forum statistics

Threads
1,216,146
Messages
6,129,142
Members
449,488
Latest member
qh017

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top