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

Trouble with IIF

Status
Not open for further replies.

dixxy12

Technical User
Jun 18, 2007
45
CA
I am trying to return a value for a field and also check if the feild is NULL at the same time with this:

Code:
IIf(nz([Forms]![frmInstallSchcedule]![cboInstaller].[Value],"")="",[installer],[Forms]![frmInstallSchcedule]![cboInstaller].[Value])

if the feild 'installer' has no data, then it does not show does records. I would like to see those records anyway, so that i know which are null.

what am i doing wrong
 
Resolved it!!!!...use the IIF in the quwery feild insrtead of the query criteria...

seems to work fine :)
 
ooppss....crash and burn....

does not work so good after all

using this in the query feild
Code:
Expr1: IIf([installer],[Installer],"NOT ASSIGNED")
works good to return all, but when i try to filter ti based on the forms combo box then it only returns all of the records, not filtered based on the form selection box...

any help?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top