Take a closer look at what Uprider suggested. There are supposed to be
four
consecutive double quotes as the second parameter of the Replace
statement:
you've only got three. (That's the way VBA works)
As well, since you've got embedded blanks in your table and field names,
you
need square brackets.
UPDATE [tblScanned Barcode Data] SET [tblScanned Barcode Data].[User ID]
=
Replace([User ID],"""","")
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
AJCB said:
The strings I have tried are:
UPDATE tblScanned Barcode Data SET tblScanned Barcode Data.User ID =
Replace([User ID],""","")
and
UPDATE Scanned Barcode Data SET Scanned Barcode Data.User ID =
Replace([User
ID],""","")
:
I have tried this, but all I keep getting back is 'The Expression you
have
entered contains an invalid syntax'
Is there another way around this?
I am sorry, if you are talking about sql query, I am afraid I have
never
done one of these!
:
change tblDataTest to your table name.
change Aname to your column name
UpRider
Sorry to sound stupid, but!!!
Where abouts will I put the field reference?
Do I replace Aname for the reference?
:
If by 'speech marks' you mean double quotes, this will work:
UPDATE tblDateTest SET tblDateTest.Aname =
Replace([Aname],"""","");
UpRider
Could anyone help me?
I have a table in an Access Database which sometimes shows
speech
marks
in
front and at the end of the fields and sometimes it doesn't.
I need to remove these if the field has them?
What would be the best course of action for this and could you
give me
an
example of the query string?
Cheers
AJ