D
drum2001
I am working on a database for calculating worked time. Basically, I
am trying to calculate the total time per day. My logic is:
SUM(ENDTIME - STARTTIME) - SUM(LUNCHOUT-LUNCHIN). This works great in
my query! However, if a user does not take a lunch, then the
calculation does not return a value.
Is there anyway to default the LUNCHOUT and LUNCHIN to "00:00:00" if
there is no value? Similary to SUM(NZ(LUNCHOUT-LUNCHIN),
#00:00:00# )) so the calculation can still complete.
Any suggestions are appreciated. Thanks!
Brad
am trying to calculate the total time per day. My logic is:
SUM(ENDTIME - STARTTIME) - SUM(LUNCHOUT-LUNCHIN). This works great in
my query! However, if a user does not take a lunch, then the
calculation does not return a value.
Is there anyway to default the LUNCHOUT and LUNCHIN to "00:00:00" if
there is no value? Similary to SUM(NZ(LUNCHOUT-LUNCHIN),
#00:00:00# )) so the calculation can still complete.
Any suggestions are appreciated. Thanks!
Brad