D
DM - NPS
I have a start time (StartTime1) and an end time (Endtime1) and would like to
subtract the 2 values using the DateDiff command. It works, however in a few
cases the end time is missing so when it does the calculation I get an #Error
in the field. How do I get the calculation to report a null value if the
starttime1 or endtime1 is missing? I tried using the code below but it did
not work.
Difference: (Nz((DateDiff("s",[startTime1],[endTime1]))))
subtract the 2 values using the DateDiff command. It works, however in a few
cases the end time is missing so when it does the calculation I get an #Error
in the field. How do I get the calculation to report a null value if the
starttime1 or endtime1 is missing? I tried using the code below but it did
not work.
Difference: (Nz((DateDiff("s",[startTime1],[endTime1]))))