Hi All,
I'm having trouble getting a wildcard to work in my query. This table connects to an Access database with ODBC and the queries are entered through MS Query. Here's the query:
In the LIKE parameter, I'm trying to pass the value along in a variable defined through a UserForm. If I select, say, 2013, then it changes the LIKE to LIKE '2013' and it works fine. However, when I select *, it evidently passes the parameter on but then it does not return any records. If I go into the MS Query application then the same thing happens. However, if I do it in Access, it works fine and returns the correct records.
What's going on here?
edit: Also, here's the code in VBA
Bookmarks