I have created a search form for my access database. this form submits the table name, the field name and the search text.
After identifying the table to search i then use this clause in my SQL statement to find the results
This works fine when mySchTxt is a single word string. Problem is mySchTxt could sometimes be a string of two or more words or even a number and that's when the errors flow.
I need help in allowing a search for all data types and handling white spaces between submitted strings.
After identifying the table to search i then use this clause in my SQL statement to find the results
Code:
WHERE " & myfield & " = '" & mySchTxt & "'"
I need help in allowing a search for all data types and handling white spaces between submitted strings.
Comment