J
JustinP
I'm created a query from whatever the user passes through textboxes.
Sometimes these have apostrophes... As an example, O'KEEFE is entered
into the textbox...
This is part of the code
strSQL = Update ...(omited)... MasterTable.OWNER1_SURNAME = '" &
Replace(txtOWNER1_SURNAME, "'", "' & '")
Evaluates to:
MasterTable.OWNER1_SURNAME = 'O' & 'KEEFE'
How can I handle these apostrophes and account for null text boxes if
they exist?
Sometimes these have apostrophes... As an example, O'KEEFE is entered
into the textbox...
This is part of the code
strSQL = Update ...(omited)... MasterTable.OWNER1_SURNAME = '" &
Replace(txtOWNER1_SURNAME, "'", "' & '")
Evaluates to:
MasterTable.OWNER1_SURNAME = 'O' & 'KEEFE'
How can I handle these apostrophes and account for null text boxes if
they exist?