- Local time
- Today, 16:26
- Joined
- Sep 12, 2006
- Messages
- 15,953
I want to be able to enter a string in a form, and have to used as a criteria in a query to include multiple options.
So, if have a query that checks for some matching records, I want to be able to use either in or like to make it easy for the user to vary the query at run time.
I can do a single option without any trouble, by just adding a function like readentrystring() but is there an easy way to make the readentrystring pass mutliple options.
so simply
readentrystring() as a crtieria works if I set the string variable to "A"
but if I want to use in or like operators, to let a user select multiple items, is there an easy way to do that?
so the following. I want to let the user just enter "A","B","C" or maybe "*A*"and have it work as
in ("A","B","C") or maybe
like "*iron*" in some circumstances
so I can build the query with a criteria in readrentrystring() or like readrentrystring() and have it operate as in ("A","B","C") or like "*iron*"
I just tried using a criteria like [enter filter]
I then entered *iron* when prompted (and some variants), but I got a no explanation ODBC error when I did that, so I am not 100% sure what is being passed to SQL Server.
So, if have a query that checks for some matching records, I want to be able to use either in or like to make it easy for the user to vary the query at run time.
I can do a single option without any trouble, by just adding a function like readentrystring() but is there an easy way to make the readentrystring pass mutliple options.
so simply
readentrystring() as a crtieria works if I set the string variable to "A"
but if I want to use in or like operators, to let a user select multiple items, is there an easy way to do that?
so the following. I want to let the user just enter "A","B","C" or maybe "*A*"and have it work as
in ("A","B","C") or maybe
like "*iron*" in some circumstances
so I can build the query with a criteria in readrentrystring() or like readrentrystring() and have it operate as in ("A","B","C") or like "*iron*"
I just tried using a criteria like [enter filter]
I then entered *iron* when prompted (and some variants), but I got a no explanation ODBC error when I did that, so I am not 100% sure what is being passed to SQL Server.