P
Pablito
Hi,
I created a Scheduling database. On the scheduling form I have fields for
"the time the person started work", "the time the person ended work", "total
hours for the week" and check boxes for "sun", "mon", "tues", "wed", "thur",
"fri" and "sat". I would like the program to automaticly calculate the total
hours worked for the week based on the amount of check boxes checked. I have
included some of the code I have tried.
=Sum(IIf([SUN]=Yes Or [MON]=Yes Or [TUE]=Yes Or [WED]=Yes Or [THU]=Yes Or
[FRI]=Yes Or [SAT]=Yes,DateDiff("n",[START_TIME],[END_TIME])/60))
Any help with this wil be greatly appreciated!
Thank you,
Paul
I created a Scheduling database. On the scheduling form I have fields for
"the time the person started work", "the time the person ended work", "total
hours for the week" and check boxes for "sun", "mon", "tues", "wed", "thur",
"fri" and "sat". I would like the program to automaticly calculate the total
hours worked for the week based on the amount of check boxes checked. I have
included some of the code I have tried.
=Sum(IIf([SUN]=Yes Or [MON]=Yes Or [TUE]=Yes Or [WED]=Yes Or [THU]=Yes Or
[FRI]=Yes Or [SAT]=Yes,DateDiff("n",[START_TIME],[END_TIME])/60))
Any help with this wil be greatly appreciated!
Thank you,
Paul