I have a formula :
if {@variablenextdate}>{TRAVEL.ENDDATETIME}then datediff('d', {TRAVEL.BEGINDATETIME},{TRAVEL.ENDDATETIME}) else
if{@variablenextdate}< {TRAVEL.ENDDATETIME}then DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{TRAVEL.ENDDATETIME} )else
DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{@variablenextdate} )
Where variablenextdate is:
dateTimeVar next_date :=((next({EXPENSEDETAIL.ARRIVEDATETIME})));
The problem is that I get a blank on the last record - where there is no other arrive date available - I cannot even code for date(0,0,0) - what am I missing?
if {@variablenextdate}>{TRAVEL.ENDDATETIME}then datediff('d', {TRAVEL.BEGINDATETIME},{TRAVEL.ENDDATETIME}) else
if{@variablenextdate}< {TRAVEL.ENDDATETIME}then DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{TRAVEL.ENDDATETIME} )else
DateDiff ('d',{EXPENSEDETAIL.ARRIVEDATETIME} ,{@variablenextdate} )
Where variablenextdate is:
dateTimeVar next_date :=((next({EXPENSEDETAIL.ARRIVEDATETIME})));
The problem is that I get a blank on the last record - where there is no other arrive date available - I cannot even code for date(0,0,0) - what am I missing?