Remove Quote Marks

Leesha
BronzeLounger
Posts: 1488
Joined: 05 Feb 2010, 22:25

Remove Quote Marks

Post by Leesha »

Hi,

I have csv file that I imported into the Access. It imports each column however the problem is that each piece of date is preceeded and ended with " ". For example "John"
would be how the first name is imported when I need it as John. The number of characters per cell will always vary. Is it possible in a query to remove the ""?
Thanks,
Leesha

User avatar
HansV
Administrator
Posts: 78474
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Remove Quote Marks

Post by HansV »

When you import a text file into Access, you can specify whether the " acts as text qualifier:
noqualifier.png
withtextqualifier.png
After the fact, you can correct it by replacing " with nothing in the Replace dialog, or by using something like

NoQuotes: Replace([FieldName], """", "")

in a query.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

Leesha
BronzeLounger
Posts: 1488
Joined: 05 Feb 2010, 22:25

Re: Remove Quote Marks

Post by Leesha »

Awesome! Thanks Hans!

Leesha