Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter query and show all 1

Status
Not open for further replies.

emtenzer

MIS
Nov 14, 2001
50
US
I am using a form for users to make their choices before running a report. I have two fields that I would like for them to be able to not choose anything so that the report runs for all of those options - for example, all transaction types instead of just one. I can do this when I only have one field - using "or is null" but I can't get it right for more than one field. Any help would be greatly appreciated.
 
where field1=iif(forms!.... is null,field1 ,forms!....)
and field2=iif(forms!.... is null,field2 ,forms!....)
 
where (field1=forms!.... or forms!.... is null)
and (field2=forms!.... or forms!.... is null)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Did you test what happens if either field1 or field2 is null ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top