I am trying to compare three dates on an Access form. the later of the 3 dates is the result I need to appear in this field. I understand how to compare 2 dates, but I can't get the correct syntax to compare 3.
this is what I have in the control source for this field:
=nz(IIf(([org_date] Is Null),"",(IIf(DateValue([rep_date])>DateValue([org_date]),DateValue([rep_date]),DateValue([org_date])))))
this only compares 2 dates, and it is clumsy - I set this up over a year ago and haven't looked at it since. AND now they need 3 dates compared.
can anyone point me in the right direction? this seems simple enough, but I am very unfamiliar with Access.
TIA!
this is what I have in the control source for this field:
=nz(IIf(([org_date] Is Null),"",(IIf(DateValue([rep_date])>DateValue([org_date]),DateValue([rep_date]),DateValue([org_date])))))
this only compares 2 dates, and it is clumsy - I set this up over a year ago and haven't looked at it since. AND now they need 3 dates compared.
can anyone point me in the right direction? this seems simple enough, but I am very unfamiliar with Access.
TIA!