PaulWilson
Registered User.
- Local time
- Today, 07:38
- Joined
- May 19, 2011
- Messages
- 43
Hey,
I use John Big Booty's dynamic multiSearch concept which I found on this forum at:
http://www.access-programmers.co.uk/forums/showthread.php?t=188663
It works well, but I want to extend it.
How it works is a textbox (txtSearchFor) on a form (frmSearchForm) has a number in it like: 12
I go to the query in design view and enter this:
like "*" & forms!frmSearchForm!txtSearchFor & "*"
It works fine when the parameter is any integer.
The problem is I'm now using a multi-select listbox and txtSearchFor says something like: 12 Or 39
When I do a msgbox on txtSearchFor it does give me what I expect but the query doesn't work anymore. I can type in 12 Or 39 and get the right result.
How do I change the parameter syntax so I can use a single number or something like "12 Or 34 Or 33"?
p.s. or for that matter 12 And 34 And 33!
I use John Big Booty's dynamic multiSearch concept which I found on this forum at:
http://www.access-programmers.co.uk/forums/showthread.php?t=188663
It works well, but I want to extend it.
How it works is a textbox (txtSearchFor) on a form (frmSearchForm) has a number in it like: 12
I go to the query in design view and enter this:
like "*" & forms!frmSearchForm!txtSearchFor & "*"
It works fine when the parameter is any integer.
The problem is I'm now using a multi-select listbox and txtSearchFor says something like: 12 Or 39
When I do a msgbox on txtSearchFor it does give me what I expect but the query doesn't work anymore. I can type in 12 Or 39 and get the right result.
How do I change the parameter syntax so I can use a single number or something like "12 Or 34 Or 33"?
p.s. or for that matter 12 And 34 And 33!