SilentAiche
Technical User
All,
I have an Access 2002 table with six date fields that feed a report thru a query. The first and sixth date fields are manditory; the middle four may or may not be used.
In my report I am tracking the interval (# of days) between the six various dates. The interior of the report is fine; the problem is with Date6 since there might not be a Date5, in which the case the interval would between Date6 and Date4 (or 3, or 2 or 1). What I am looking for is this: [Date6] - max([date1],[date2],[date3] etc.), however, this use of "max" does not appear to be a valid function (yes, I've tried "maximum.")
Is the syntax wrong, or the whole notion? Is there some form of a max function that would work here? I am trying to avoid some IIf formula with five nested conditions.
Thanks to any and all for your thoughts.
I have an Access 2002 table with six date fields that feed a report thru a query. The first and sixth date fields are manditory; the middle four may or may not be used.
In my report I am tracking the interval (# of days) between the six various dates. The interior of the report is fine; the problem is with Date6 since there might not be a Date5, in which the case the interval would between Date6 and Date4 (or 3, or 2 or 1). What I am looking for is this: [Date6] - max([date1],[date2],[date3] etc.), however, this use of "max" does not appear to be a valid function (yes, I've tried "maximum.")
Is the syntax wrong, or the whole notion? Is there some form of a max function that would work here? I am trying to avoid some IIf formula with five nested conditions.
Thanks to any and all for your thoughts.