Forum Moderators: open
i am trying to insert the ' character into an ms access database but seem to get an error, what is the way round this and what other characters are not allowed in MS Access?
thanx
The single quote is what you normally use to tell Access when you are starting or ending a string of data:
LName = 'Smith'
But, if you have one in the middle of your string, it thinks the string has ended, and then doesn't know what to do with the rest of the data:
LName = 'O'Hare'
The way to handle this is to double up the single quote that you are using as an apostrophe:
LName = 'O''Hare'
And that should work for you.
-Moz