B
Bruce
I have a report based on a query. There is a text box
(txtComplete) for completion date [Complete]. If
[Complete] is blank, I would like to see "Not Complete",
with the date appearing otherwise. I tried:
=IIf(IsNull([Complete]),"Not Complete",Format
([Complete],"m/d/yy")), but I received #Error in every
record on the report, whether or not the [Complete] was
empty. I tried replacing the else part of the expression
with "Complete", and saw "Complete" in every field, even
the empty ones. I also tried "Short Date" instead
of "m/d/yy", but no change.
[Complete] is a date field in the query's underlying table.
I went with Format(etc.) for Else with the idea that Then
and Else would be the same type of expression (i.e. a
string).
What am I missing here?
(txtComplete) for completion date [Complete]. If
[Complete] is blank, I would like to see "Not Complete",
with the date appearing otherwise. I tried:
=IIf(IsNull([Complete]),"Not Complete",Format
([Complete],"m/d/yy")), but I received #Error in every
record on the report, whether or not the [Complete] was
empty. I tried replacing the else part of the expression
with "Complete", and saw "Complete" in every field, even
the empty ones. I also tried "Short Date" instead
of "m/d/yy", but no change.
[Complete] is a date field in the query's underlying table.
I went with Format(etc.) for Else with the idea that Then
and Else would be the same type of expression (i.e. a
string).
What am I missing here?