If statement

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

Guest

Hi! I'm writing an IIf statement.
IIf([CNS_DATAENTRY_QRY]![LOC] Is Null And
[CNS_DATAENTRY_QRY]![GCS] Is Not Null,"GCS used instead",
[CNS_DATAENTRY_QRY]![LOC])

I'm hoping that by writing that if LOC is Null and GCS is
Not null that it will return the Text "GCS used instead".
However, it does not return anything, why is that?
 
Hi,

instead of CNS_DATAENTRY_QRY]![LOC] Is Null, try
IsNull(CNS_DATAENTRY_QRY]![LOC])=-1

Luiz Cláudio C. V. Rocha
São Paulo - Brazil
 

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