I have a variable assigned in a global function. The purpose of this is for when a user selects a company from a drop down list, it then runs a query and filters on the company selected.
The reason I am using a variable is that I have also added the option of listing "All companies". However, if the user selects this, the variable is then change to Like "*" and passed into the query..... but, I get no results.
I am passing the variable like so StrSearch = "LIKE " & chr$(34) & "*" & chr$(34). In the dubug window, it looks fine but still no results.
Any suggestions.
The reason I am using a variable is that I have also added the option of listing "All companies". However, if the user selects this, the variable is then change to Like "*" and passed into the query..... but, I get no results.
I am passing the variable like so StrSearch = "LIKE " & chr$(34) & "*" & chr$(34). In the dubug window, it looks fine but still no results.
Any suggestions.