Usinf IIF with "and"

GPSPOW

Registered User.
Local time
Today, 13:42
Joined
Apr 25, 2012
Messages
27
How do I write the build expression to do the following:

IIF( isnull(Field1) and isnull(field2), 1, datediff('d',now(), dateserial(2012,4,30))

I am having a problem with the "and" clause.

Thank you

GPSPOW
 
Really? I could not see anything wrong with the expression.. Try this..

IIF(IsNull([Field1]) And IsNull([Field2]), 1, DateDiff("d",Date(), DateSerial(2012,4,30))
 
Thank you.
 

Users who are viewing this thread

Back
Top Bottom