Criteria, DLookup, and IIF

C

croy

I'm trying to get this to work:


IIf(DLookUp("District","tblDistrictStart")=4,Null,(DLookUp("District","tblDistrictStart")))

The goal is, if the value for the field looked up is 4, then
use no criteria. But if the value is something else, then
use it for the criteria.

Any suggestions are appreciated...
 
C

croy

I'm trying to get this query criteria to work:


IIf(DLookUp("District","tblDistrictStart")=4,Null,(DLookUp("District","tblDistrictStart")))

The goal is, if the value for the field looked up is 4, then
use no criteria. But if the value is something else, then
use it for the criteria.

Any suggestions are appreciated...

More data: all fields involved are Long Integer.
 

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

Top