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  

Parameter Query Wild Card



 
 
Thread Tools Display Modes
  #1  
Old June 25th, 2008, 10:13 PM posted to microsoft.public.access.queries
Iram
external usenet poster
 
Posts: 122
Default Parameter Query Wild Card

I have a report that is running a parameter query against a form that that
has a list box. The list box gets its data from a table that has three
records.
Office1
Office2
Office3

I can run the report based upon which office I select in the field list
however how do I add a fourth record to indicate a wildcard that will allow
me to select it so that when I run the report all three offices will populate
the report?

Iram/mcp
  #2  
Old June 25th, 2008, 11:01 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Parameter Query Wild Card

Edit your query criteria from this --
[Forms]![YourForm]![ListBox]
to this --
[Forms]![YourForm]![ListBox] OR [Forms]![YourForm]![ListBox] Is Null

An alternative is the add "ALL" to the listbox and edit query criteria like
this --
Like IIF([Forms]![YourForm]![ListBox] = "ALL", "*",
[Forms]![YourForm]![ListBox])

--
KARL DEWEY
Build a little - Test a little


"Iram" wrote:

I have a report that is running a parameter query against a form that that
has a list box. The list box gets its data from a table that has three
records.
Office1
Office2
Office3

I can run the report based upon which office I select in the field list
however how do I add a fourth record to indicate a wildcard that will allow
me to select it so that when I run the report all three offices will populate
the report?

Iram/mcp

 




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 09:46 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.