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

using the * wildcard

Status
Not open for further replies.

chainedtodesk

Programmer
Joined
Feb 26, 2003
Messages
112
Location
US
i am trying to use multiple options in a report one is included, my goal is if they have not selected an option from one of the drop downs that the query would look at it as * and pull in all records for that field and move along to the next one, if i select something it works but the * isnt working, thanks

IIf([Forms]![frmReports]![rptcond1]=0,"*",[Forms]![frmReports]![cboAnalyst])
 
Use the Like operator:
Like IIf([Forms]![frmReports]![rptcond1]=0,"*",[Forms]![frmReports]![cboAnalyst])

Another way:
=[Forms]![frmReports]![cboAnalyst] OR [Forms]![frmReports]![rptcond1]=0

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top