Hello All,
Is there a way to use the "AND" operator in an IIf statement?
I have two statements that need to run in the control source of a control.
Checks to see if the LD Start Date is over a year old.
Checks to see if the LD End Date field is null.
Like I mentioned, I am using this in the control source property of a textbox control in a report.
Or, should I use this in the Current Event of the report? and if so, then would it look something like this:
Is there a way to use the "AND" operator in an IIf statement?
I have two statements that need to run in the control source of a control.
Code:
IIf(DateDiff('d',[LDStartDate],Date())>=366,"*","")
Checks to see if the LD Start Date is over a year old.
Code:
,IIf(IsNull([LDEndDate],"*","")
Checks to see if the LD End Date field is null.
Like I mentioned, I am using this in the control source property of a textbox control in a report.
Or, should I use this in the Current Event of the report? and if so, then would it look something like this:
Code:
IIf(AND(IIf(IsNull([LDEndDate),"*","",(IIf(DateDiff('d',[LDStartDate],Date())>=366,"*","")