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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot perform Update function when using "Object d'art"

Status
Not open for further replies.

Pies

Technical User
Jan 29, 2002
3
GB
In Access I have a form which has a text string which has a single quote ("Object d'art"), this then stops VBA updating a recordset, I know that its the single quote that is a problem anyone got any ideas of how I can update using "object d'art" without removing the single quote?

Pies.
 
You need to use two consecutive single quotes instead of one, i.e:
Code:
UPDATE tblYourTable 
SET YourField = 'Object d
''
Code:
art'
WHERE ID.Field = 1;
Note that the bit in bold, above, is two single quotes, not a double quote.

[pc2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top