R
Robert
I created an update query to add three different break
times together and update a field
named "intTotalBreakTime" in a record. I have created the
following record fields.
dtmMBreakStartTime
dtmMBreakEndTime
dtmLunchStartTime
dtmLunchEndTime
dtmAFBreakStartTime
dtmAFBreakEndTime
intTotalBreakTime
The problem I am having is that if I have no times input
in either the morning and afternoon break time fields or
lunch time fields, the expression does not update the
field. Do I have to have data is all three time fields to
make the update work?
Expression
DateDiff("n",[dtmMBreakStartTime],[dtmMBreakEnd
Time])/60+DateDiff("n",[dtmLunchStartTime],
[dtmLunchEndTime])/60+DateDiff("n",[dtmAFBreakStartTime],
[dtmAFBreakEndTime])/60
times together and update a field
named "intTotalBreakTime" in a record. I have created the
following record fields.
dtmMBreakStartTime
dtmMBreakEndTime
dtmLunchStartTime
dtmLunchEndTime
dtmAFBreakStartTime
dtmAFBreakEndTime
intTotalBreakTime
The problem I am having is that if I have no times input
in either the morning and afternoon break time fields or
lunch time fields, the expression does not update the
field. Do I have to have data is all three time fields to
make the update work?
Expression
DateDiff("n",[dtmMBreakStartTime],[dtmMBreakEnd
Time])/60+DateDiff("n",[dtmLunchStartTime],
[dtmLunchEndTime])/60+DateDiff("n",[dtmAFBreakStartTime],
[dtmAFBreakEndTime])/60