How do I use a non-filter in an iif statement?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Here is my criteria:
IIf(IsNull([forms]![frmReports]![cboLocation]),*,[forms]![frmReports]![cboLocation])
Where the * is I would like and expression that shows all values. In other
words, on the form, if that combo box is left blank, do not filter on this
field.
 
Try using Nz instead, to replace Null with *

Where FieldName Like Nz([forms]![frmReports]![cboLocation],"*")
 
I forget about Nz! That worked great! Thanks!

Ofer Cohen said:
Try using Nz instead, to replace Null with *

Where FieldName Like Nz([forms]![frmReports]![cboLocation],"*")

--
Good Luck
BS"D


rpurosky said:
Here is my criteria:
IIf(IsNull([forms]![frmReports]![cboLocation]),*,[forms]![frmReports]![cboLocation])
Where the * is I would like and expression that shows all values. In other
words, on the form, if that combo box is left blank, do not filter on this
field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top