Hi, I think this is more of a web question than a Microsoft Access one ...
I have a search page that uses the contents of txtSearch in the "where" clause of a SQL query as follows:-
Trouble is, it doesn't return any records! Well, it will return matching records only when the contents of txtSearch exactly matches the contents of the Description field -- which means I may as well of used an "=" sign instead of the "like" operator.
If I output the contents of SQLQuery onto the page, and then copy that into an Access query then it works fine. It just doesn't work when it's submitted from the page.
Any ideas??
Alex
I have a search page that uses the contents of txtSearch in the "where" clause of a SQL query as follows:-
Code:
SQLQuery = _
"select Name from MyTable
where Description like '*" & txtSearch & "*'"
If I output the contents of SQLQuery onto the page, and then copy that into an Access query then it works fine. It just doesn't work when it's submitted from the page.
Any ideas??
Alex