I have converted strings into time < CR 6.0 >
the start time
TIME ( ToNumber ( {Query.Inv Start Time} [ 1 to 2 ] ) ,
ToNumber ( {Query.Inv Start Time} [ 3 to 4 ] ) ,
ToNumber ( {Query.Inv Start Time} [ 5 to 6 ] ) )
// The end time (the 'zereos' are when no end date entered)
IF ( {Query.Loc Stop Time} = '000000' ) Then
TIME ( ToNumber ( {Query.SYSDATE} [ 12 to 13 ] ),
ToNumber ( {Query.SYSDATE} [ 15 to 16 ]),
ToNumber ( {Query.SYSDATE} [ 18 to 19 ]))
else
TIME (ToNumber ( {Query.Loc Stop Time} [ 1 to 2 ] ) ,
ToNumber ( {Query.Loc Stop Time} [ 3 to 4 ] ) ,
ToNumber ( {Query.Loc Stop Time} [ 5 to 6 ] ) )
formated in cr as "hh:mm:ss"
the use this formula to find the difference
TIME ( 0,0,0 ) + ( {@Time Stop} - {@Time Start} )
Now what i cant figure out is how to get a subtotal on the time field (time difference) CR will only show me "Min, Max, Count... I think the "difference" needs to be converted to seconds, but i can't find anything in my books. I did find Ken's method to convert seconds into real time, If i make it that far.
Any help would be appreciated
the start time
TIME ( ToNumber ( {Query.Inv Start Time} [ 1 to 2 ] ) ,
ToNumber ( {Query.Inv Start Time} [ 3 to 4 ] ) ,
ToNumber ( {Query.Inv Start Time} [ 5 to 6 ] ) )
// The end time (the 'zereos' are when no end date entered)
IF ( {Query.Loc Stop Time} = '000000' ) Then
TIME ( ToNumber ( {Query.SYSDATE} [ 12 to 13 ] ),
ToNumber ( {Query.SYSDATE} [ 15 to 16 ]),
ToNumber ( {Query.SYSDATE} [ 18 to 19 ]))
else
TIME (ToNumber ( {Query.Loc Stop Time} [ 1 to 2 ] ) ,
ToNumber ( {Query.Loc Stop Time} [ 3 to 4 ] ) ,
ToNumber ( {Query.Loc Stop Time} [ 5 to 6 ] ) )
formated in cr as "hh:mm:ss"
the use this formula to find the difference
TIME ( 0,0,0 ) + ( {@Time Stop} - {@Time Start} )
Now what i cant figure out is how to get a subtotal on the time field (time difference) CR will only show me "Min, Max, Count... I think the "difference" needs to be converted to seconds, but i can't find anything in my books. I did find Ken's method to convert seconds into real time, If i make it that far.
Any help would be appreciated