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  

Enter multiple Parameters for a Field



 
 
Thread Tools Display Modes
  #1  
Old May 13th, 2008, 11:36 PM posted to microsoft.public.access.queries
hannah
external usenet poster
 
Posts: 66
Default Enter multiple Parameters for a Field

Hi All,

I'm trying to create a parameter that allows you to enter two values. For
example, in my query I created a parameter to enter the brand so that the
query only pulls information for that one brand. I want to create a query
where you can select two brands so the report pulls up information for only
the two brands that are entered.

This is what my criteria currently looks like:
[forms]![frmEnterSpiritSalesP]![text5]

Thanks!
Hannah
  #2  
Old May 14th, 2008, 03:13 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Enter multiple Parameters for a Field

On Tue, 13 May 2008 15:36:01 -0700, Hannah
wrote:

Hi All,

I'm trying to create a parameter that allows you to enter two values. For
example, in my query I created a parameter to enter the brand so that the
query only pulls information for that one brand. I want to create a query
where you can select two brands so the report pulls up information for only
the two brands that are entered.

This is what my criteria currently looks like:
[forms]![frmEnterSpiritSalesP]![text5]

Thanks!
Hannah


[forms]![frmEnterSpiritSalesP]![text5] OR
[forms]![frmEnterSpiritSalesP]![text6]

or, equivalently, put the two criteria on two consecutive lines in the query
grid (assuming there aren't any other criteria; if there are they'll need to
be repeated).
--

John W. Vinson [MVP]
 




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 04:49 AM.


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