F
France
I am having a problem with a query criteria. I am trying to retrieve null
records if a field called txtCurrentCity on a form is null. The criteria
works fine if the txtCurrentCity has a name in it. However, when the field
is null it is not returning the null records.
Here is the criteria
IIf(IsNull([Forms]![FrmTopClients]![txtCurrentCity]),IsNull([QryAllOfficesContacts]![City]),[Forms]![FrmTopClients]![txtCurrentCity])
records if a field called txtCurrentCity on a form is null. The criteria
works fine if the txtCurrentCity has a name in it. However, when the field
is null it is not returning the null records.
Here is the criteria
IIf(IsNull([Forms]![FrmTopClients]![txtCurrentCity]),IsNull([QryAllOfficesContacts]![City]),[Forms]![FrmTopClients]![txtCurrentCity])