Query not recognizing blank fields

R

Rodrigo Borges

I have a table with a date field that have some registries with #Num!

When I create a simple query all registries listed in the table as #Num! are
listed as "" (blank) on my query.

Now I need to to check if this field is "" then bla bla... I'm using the
following:

Status: IIf([Latest Report]="";"ERROR";"OK")

The result is always the ELSE option. So, here is OK.... What I'm doing
wrongly?

Rodrigo Borges
 
C

Carl Rapson

Rodrigo Borges said:
I have a table with a date field that have some registries with #Num!

When I create a simple query all registries listed in the table as #Num!
are listed as "" (blank) on my query.

Now I need to to check if this field is "" then bla bla... I'm using the
following:

Status: IIf([Latest Report]="";"ERROR";"OK")

The result is always the ELSE option. So, here is OK.... What I'm doing
wrongly?

Rodrigo Borges

Try IsNull instead:

IIf(IsNull([Latest Report]),"ERROR","OK")

Carl Rapson
 

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