hi,
i store the user selection from a list box, in a variable
and pass that variable as a parameter in my query.
i.e when the user chooses "Rblt1" from the list box the variable "varRblt" gets the value "Rblt1" and the query
sqltext="SELECT * FROM DBname WHERE RBLT='"& varRblt&"';" works fine.
When the user makes multiple selections (i.e Rblt1 and Rblt2)from the list box,the variable varRblt gets the value
"Rblt1,Rblt2" and the query does NOT work.
How should i write sqltext in order to work with single and multiple selections?
Waiting for help,
Thanks in advance
ierax
i store the user selection from a list box, in a variable
and pass that variable as a parameter in my query.
i.e when the user chooses "Rblt1" from the list box the variable "varRblt" gets the value "Rblt1" and the query
sqltext="SELECT * FROM DBname WHERE RBLT='"& varRblt&"';" works fine.
When the user makes multiple selections (i.e Rblt1 and Rblt2)from the list box,the variable varRblt gets the value
"Rblt1,Rblt2" and the query does NOT work.
How should i write sqltext in order to work with single and multiple selections?
Waiting for help,
Thanks in advance
ierax