I have this line of code in my db:
It is supposed to grab the data from a listbox (lstsearch), and match the string in txtsearch to the 10th column and then open and fill the report "TestReport" with it.
I get error 3075 "Syntax error (missing operator) in query expression '( like '*a**)'
"a" was the value in txtsearch at the time.
Something is missing in the code. what is it???
Thanks
Mafhobb
Code:
DoCmd.OpenReport "TestReport", acViewPreview, , Me.lstsearch.Column(10) & " like '*" & "*" & txtsearch & "*" & "*'"
It is supposed to grab the data from a listbox (lstsearch), and match the string in txtsearch to the 10th column and then open and fill the report "TestReport" with it.
I get error 3075 "Syntax error (missing operator) in query expression '( like '*a**)'
"a" was the value in txtsearch at the time.
Something is missing in the code. what is it???
Thanks
Mafhobb