A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multiple parameter prompt in a query (InParam)



 
 
Thread Tools Display Modes
  #1  
Old July 10th, 2008, 08:54 PM posted to microsoft.public.access.queries
Marchelle
external usenet poster
 
Posts: 2
Default Multiple parameter prompt in a query (InParam)

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?

  #2  
Old July 11th, 2008, 04:22 PM posted to microsoft.public.access.queries
Ryan
external usenet poster
 
Posts: 551
Default Multiple parameter prompt in a query (InParam)

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" wrote:

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?

  #3  
Old July 11th, 2008, 08:46 PM posted to microsoft.public.access.queries
Marchelle
external usenet poster
 
Posts: 2
Default Multiple parameter prompt in a query (InParam)

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

"Ryan" wrote:

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" wrote:

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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.