NewShortStuff
MIS
I am using the following code to select a record from a combo box, but when I select a record with text that ends or contains quotes I get a syntax error.
DetailTB.Open "Update Detail set [added]='1' Where LineName = """ & Me!LineName & """"
Example: #19 B-6-11 Lateral 8" causes the following error
Syntax error in string query expression 'Line Name = "#19 B-6-11 Lateral 8"'".
DetailTB.Open "Update Detail set [added]='1' Where LineName = """ & Me!LineName & """"
Example: #19 B-6-11 Lateral 8" causes the following error
Syntax error in string query expression 'Line Name = "#19 B-6-11 Lateral 8"'".