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!

Iif Statement- what am I missing?

Status
Not open for further replies.

MrsMope

Technical User
Oct 18, 2004
125
US
Hi all,
what is missing in this if statement for a query? I am trying to say if the option group is 1 then pull all records otherwise, pull just selected role.
Code:
IIf([Forms]![frmMain]![fraICRoles]=1,"*",[Forms]![frmMain]![cboICRole])
 
Perhaps this ?
Like IIf([Forms]![frmMain]![fraICRoles]=1, '*', [Forms]![frmMain]![cboICRole])

Or this ?
=[Forms]![frmMain]![cboICRole] OR [Forms]![frmMain]![fraICRoles]=1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PHV,
You are the best! That is EXACTLY what I was looking for.
Someday I hope to help others as you have helped me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top