I am having a problem with the following line
sql2 = "SELECT * FROM [wol] WHERE trim([Title]) = '" & Trim(TextBox4.Text) & "' and trim([publisher]) = '" & Trim(TextBox8.Text) & "' and trim(
sql2 = "SELECT * FROM [wol] WHERE trim([Title]) = '" & Trim(TextBox4.Text) & "' and trim([publisher]) = '" & Trim(TextBox8.Text) & "' and trim(
Code:
) = '" & Trim(TextBox7.Text) & "' and trim([composer]) = '" & Trim(TextBox9.Text) & "'"
The problem is The Textbox8.text is eg isn't it (for example)
ie the is a ' in the lookup
The program bombs out
is there a way of doing a lookup with a ' in texttbox i am using for the lookup
Appreciate any help
Trob70