Q
Qaspec
I'm using the following expressions to calculate the number of hours between
[ZeroHour] and [ActualEndDate] subtracting the Saturday and Sunday Hours. I
also have a table [tblHolidays] with a [HolidayDate] field. Is it possible to
create an expression that would allow me to subtract holiday hours also? Do I
need to create a function?
Saturdays: DateDiff("ww",[ZeroHour],[ActualEndDate],7)*24
Sundays: DateDiff("ww",[ZeroHour],[ActualEndDate],1)*24
Elapsed Time:
(DateDiff("n",[ZeroHour],[ActualEndDate])/60-[Saturdays]-[Sundays])
[ZeroHour] and [ActualEndDate] subtracting the Saturday and Sunday Hours. I
also have a table [tblHolidays] with a [HolidayDate] field. Is it possible to
create an expression that would allow me to subtract holiday hours also? Do I
need to create a function?
Saturdays: DateDiff("ww",[ZeroHour],[ActualEndDate],7)*24
Sundays: DateDiff("ww",[ZeroHour],[ActualEndDate],1)*24
Elapsed Time:
(DateDiff("n",[ZeroHour],[ActualEndDate])/60-[Saturdays]-[Sundays])