I am using a continous form for time keeping purposes. It looks somewhat like this:
Project | Week | Mon | Tues | Wed | Thur | Fri | Comments|
ABC |03/31/08| 1 | 0 | 3 | 2 | 0 | Design Work |
XYZ
Etc
The form displays the last month's worth of work. I would like to display the number of hours entered for the current week in the footer. The page already limits the entries to a specific employee. I can't seem to figure out how to sum across colums and entries or how to limit the sum to the current week.
I tried creating a seperate query, which worked but I couldn't figure out how to tie it into the footer.
I tried creating a sub form to display the information but couldn't do that since I am using a continuous form. (If I use a single form I loose key functionality I get from the continuous form.)
I tried using some code in a text box: (txtWeek is a textbox with some code that determines the date for the Monday of the current week.)
=Sum(IIf([Weekof]=[txtWeek],[Monday]+[Tuesday]+[Wednesday]+[Thursday]+[Friday],0))
I also tried:
=IIf([Weekof]=[txtWeek],Sum([Monday]+[Tuesday]+[Wednesday]+[Thursday]+[Friday]),0)
Ideally it would also automatically update itself when they enter new hours.
Any ideas?
Project | Week | Mon | Tues | Wed | Thur | Fri | Comments|
ABC |03/31/08| 1 | 0 | 3 | 2 | 0 | Design Work |
XYZ
Etc
The form displays the last month's worth of work. I would like to display the number of hours entered for the current week in the footer. The page already limits the entries to a specific employee. I can't seem to figure out how to sum across colums and entries or how to limit the sum to the current week.
I tried creating a seperate query, which worked but I couldn't figure out how to tie it into the footer.
I tried creating a sub form to display the information but couldn't do that since I am using a continuous form. (If I use a single form I loose key functionality I get from the continuous form.)
I tried using some code in a text box: (txtWeek is a textbox with some code that determines the date for the Monday of the current week.)
=Sum(IIf([Weekof]=[txtWeek],[Monday]+[Tuesday]+[Wednesday]+[Thursday]+[Friday],0))
I also tried:
=IIf([Weekof]=[txtWeek],Sum([Monday]+[Tuesday]+[Wednesday]+[Thursday]+[Friday]),0)
Ideally it would also automatically update itself when they enter new hours.
Any ideas?