G
Guest
I'm having trouble getting my IIF statemet to work in one of my reports. I
would like to return the text "Liability Insurance" if there is a value in
the "liability_insurance_end_date" field, otherwise return the data in the
field called "reminder_type". The problem I'm having is with the
"reminder_type" field. If I just put in some text for debugging purposes it
works fine. However, when I try to get the value out of the field I get a
#Error on my report. If I completely remove the IIF statement and just put
the "reminder_type" field in the control source it works just fine and
returns the value in the field. However, I need it to work in the IIF
statement. Any ideas on how to fix this? My code in the control source is
below.
=IIf([liability_insurance_end_date] Is Not Null,"Liability
Insurance",[reminder_type])
Thanks,
rone
would like to return the text "Liability Insurance" if there is a value in
the "liability_insurance_end_date" field, otherwise return the data in the
field called "reminder_type". The problem I'm having is with the
"reminder_type" field. If I just put in some text for debugging purposes it
works fine. However, when I try to get the value out of the field I get a
#Error on my report. If I completely remove the IIF statement and just put
the "reminder_type" field in the control source it works just fine and
returns the value in the field. However, I need it to work in the IIF
statement. Any ideas on how to fix this? My code in the control source is
below.
=IIf([liability_insurance_end_date] Is Not Null,"Liability
Insurance",[reminder_type])
Thanks,
rone