Multiple parameter prompt in a query (InParam)

M

Marchelle

In earlier versions (2000) of Access I was able to create an InParam module
and have the query prompt me for multiple values separated by a ",". 2003 or
2007 does not allow me to. Anyone have any ideas?
 
R

Ryan

I just tested this and it worked great for me. In your query, on the field
you want to parameters on add this to the criteria.

In([your message to the user to])

The In([]) will ask the user for the parameter values, and whatever you type
between the [] will be what they are prompted with. With the In, you can add
multiple values seperated by a comma. So if your users added 1,2,3 then all
records with 1 2 or 3 would show up. No need for the " all they need to do
is use the ,
 
M

Marchelle

Well, that didn't go well...
The prompt never appeared and the query returned all.

Ryan said:
I just tested this and it worked great for me. In your query, on the field
you want to parameters on add this to the criteria.

In([your message to the user to])

The In([]) will ask the user for the parameter values, and whatever you type
between the [] will be what they are prompted with. With the In, you can add
multiple values seperated by a comma. So if your users added 1,2,3 then all
records with 1 2 or 3 would show up. No need for the " all they need to do
is use the ,


--
Please remember to mark this post as answered if this solves your problem.


Marchelle said:
In earlier versions (2000) of Access I was able to create an InParam module
and have the query prompt me for multiple values separated by a ",". 2003 or
2007 does not allow me to. Anyone have any ideas?
 

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