brian_msbc
Registered User.
- Local time
- Today, 01:16
- Joined
- Dec 12, 2016
- Messages
- 17
I want to use this code in the rowsource for a listbox:
But I'm getting an enter Parameter value error. I'm only assuming i'm using "Like" incorrectly. Should there be a wildcard notation? if so, how would that look?
update- I changed [ME]! to the actual form object path which solved the enter parameter value problem, but im getting no records, I think its because of the wildcard thing.
Code:
SELECT DISTINCT mps.[Partner Name]
FROM MasterProfileSummary AS mps
WHERE (((mps.[Partner Name]) Like [Me]![TextSearch])) OR ((([ME]![TextSearch]) Is Null))
ORDER BY mps.[Partner Name];
update- I changed [ME]! to the actual form object path which solved the enter parameter value problem, but im getting no records, I think its because of the wildcard thing.