Evi,
IIF(AnyNumberOtherThanZero, True, False) will return TRUE. It only return
false if the number is zero.
Or stated another way, TRUE is any number that is not zero. False is Zero.
The other part of this is that if the value is Null, an IIF statement will
return the false argument. And a date is stored in Access as a number and
can often be treated as a number.
Personnally, I would specifically test for the value being null as I find it
a lot clearer then the above method. In a query I would use
IIF({Certification Date] is not Null,"Cert",Null)
As a control source, I would use the VBA function IsNull(...)
Hope that helps
--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
.
Evi said:
Steve, can you explain something to me? I'm used to seeing IIF formulas as
arguments eg
IIF(IsNull([CertificationDate]),"Cert",0)
Or
(if CertificationDate is null then print Cert else print 0
IIF([MyTextBox]=[CertificationDate]), "Cert",0)
(if MyTextBox contains the same value as the CertificationDate field then
print Cert else print 0
but what does it mean if you just say
IIF([CertificationDate], "Cert",0)?
Evi