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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying All Records in a Query of a Yes/No

Status
Not open for further replies.

kopy

Technical User
May 30, 2002
141
US
I am trying to use the value of a table as criteria for a yes/no field in a query. It works correctly for the Yes (-1) and No (0) values. My problem is that if the value of the field is All only the -1 records are returned int he results. I'd like to have the All value return both 0 and -1 records.

Any help will be greatly appreciated. Thanks, Kopy
===========================================================

IIf(DLookUp("PDDNOS","tblQBF")="No",0,IIf(DLookUp("PDDNOS","tblQBF")="Yes",-1,IIf(DLookUp("PDDNOS","tblQBF")="All",([tblPreScreeningInfo].[PDDNOS])=0 Or ([tblPreScreeningInfo].[PDDNOS])=-1)))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top