Re: Removing quotation marks
From: fredg (fgutkind_at_example.invalid)
Date: 09/14/04
- Next message: Arul: "trunc"
- Previous message: MN: "Update query different values?"
- In reply to: Mark: "Removing quotation marks"
- Next in thread: John Vinson: "Re: Removing quotation marks"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 21:00:13 GMT
On Tue, 14 Sep 2004 12:21:52 -0700, Mark wrote:
> I have data that is imported in with quotation marks
> around each field in a record. Is there a way to write a
> query that gets rid of the quotation marks? any help is
> appreciated as always.
> How it is Desired
> Field1 Field2 Field1 Field2
> "ABC" "123" ABC 123
A permanent change to the data?
Create an Update Query.
If your version of Access has the Replace() function you can use:
Update YourTable Set YourTable.[Field1] = Replace([Field1],'"',""),
YourTable.[Field2] = Replace([Field2],'"',"");
With spaces added for clarity only, the quotes are as follows:
Replace([FieldName],' " ' , " ")
Note: Some earlier versions of Access 2000 have the Replace() function
but it is not usable directly in a query.
You can create a function in a module using the Replace function there
and return the new value to the query.
-- Fred Please only reply to this newsgroup. I do not reply to personal email.
- Next message: Arul: "trunc"
- Previous message: MN: "Update query different values?"
- In reply to: Mark: "Removing quotation marks"
- Next in thread: John Vinson: "Re: Removing quotation marks"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|