Y
Yam84
Hello,
I am trying to calculate leave taken. I track leave by having the
users input the days they are taking off. there is a reasonDtFrom and
reasonDtTo for dates. I use the dateadd function to determine how
many days that are being taken off, however I need it in hours. I
realize I could change my statement to:
HoursOut: (DateDiff("h",[ReasonDetails]![reasonDtFrom],[ReasonDetails]!
[reasonDtTo]))
However that gives me more hours than in the 8 hour work day. For
instance, one of my users is taking 7 days off. it should say 48 (8
hours per day, 6 days) hours have been used, it says 144 (24 hours per
day, 6 days). Is there anyway that I could make this calculate work
days?
I am trying to calculate leave taken. I track leave by having the
users input the days they are taking off. there is a reasonDtFrom and
reasonDtTo for dates. I use the dateadd function to determine how
many days that are being taken off, however I need it in hours. I
realize I could change my statement to:
HoursOut: (DateDiff("h",[ReasonDetails]![reasonDtFrom],[ReasonDetails]!
[reasonDtTo]))
However that gives me more hours than in the 8 hour work day. For
instance, one of my users is taking 7 days off. it should say 48 (8
hours per day, 6 days) hours have been used, it says 144 (24 hours per
day, 6 days). Is there anyway that I could make this calculate work
days?