Calculate Total Hours Worked For Week Based On Check Boxes.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top