Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Striping a ' from a field 1

Status
Not open for further replies.

meagain

MIS
Nov 27, 2001
112
CA
I have a table from which I export to a txt file for import into another database. The import won't accept ' in any of the fields, and since there are 's in the originating table I need to find a way to remove them prior to the export taking place, (ie: Andy's Place needs to be changed to Andys Place prior to export)

The 's can appear anywhere in 4 different fields.

We are using Access 2000.

Any ideas on how I can strip out the 's in my fields?


Thanks alot,
Lori
 
Export a query instead of the table:[tt]
SELECT Replace([field 1], "'", "") AS Field1
, Replace([field 2], "'", "") AS Field2
...[/tt]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PH, thanks so much for the tip, it worked well in removing the apostrophe.

Any advice on stripping quotation marks? As you know because it is a quote in between 2 quotes, Access thinks I've left a string unfinished. Any tricks to get it to register that I want quotation marks replaced?

Thanks a lot :)
 
SELECT Replace([field 1], """", "") AS Field1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top