Prompt for mutilple values in a query

D

DOTJake

How can I prompt the user for mltiple values for a
parameter in a query.

I would like to have some thing like

WHERE [MYTABLE]![MYFIELD] in ['enter values:']

and allow the user to enter 1 to n values in the prompt.

Thanks
DOTJAKE
 
D

Duane Hookom

Not too easy to implement. You could possible set up the column/field to be
something like
InWhere:Instr("," & [Enter comma separated values] & ",", "," & [MyField] &
",")
in the criteria, enter
The user could enter values like "John,Joe,Bill,Jane" without the spaces.
--
Duane Hookom
MS Access MVP


DOTJake said:
How can I prompt the user for mltiple values for a
parameter in a query.

I would like to have some thing like

WHERE [MYTABLE]![MYFIELD] in ['enter values:']

and allow the user to enter 1 to n values in the prompt.

Thanks
DOTJAKE
 
D

DOTJake

That does it. Thanks !

Jake
-----Original Message-----
Not too easy to implement. You could possible set up the column/field to be
something like
InWhere:Instr("," & [Enter comma separated values] & ",", "," & [MyField] &
",")
in the criteria, enter
The user could enter values like "John,Joe,Bill,Jane" without the spaces.
--
Duane Hookom
MS Access MVP


How can I prompt the user for mltiple values for a
parameter in a query.

I would like to have some thing like

WHERE [MYTABLE]![MYFIELD] in ['enter values:']

and allow the user to enter 1 to n values in the prompt.

Thanks
DOTJAKE


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top