Wapug
Registered User.
- Local time
- Today, 15:31
- Joined
- Apr 14, 2017
- Messages
- 51
Goal: Create display field on form showing the current number of items processed this workweek, from TableA.FieldQ
Current Situation: I currently have TableA with a field FieldQ, in this field the total items worked are entered each morning. At the end of the day, and week I would like to be able to open up the database this information is housed in, and see both the sum of items worked that day and that week (m-f). I already have the field for the day, I am struggling a bit with the week field for some reason. I would not only like to go in it on Friday afternoon, but any day during the week and see the total of items worked from monday to whatever day Im on. I dont want Sundays counted, but I seem to be getting them. The form isnt an issue.
What I have:
Select *
From TableA
WHERE [TableA.FieldQ] BETWEEN
DateAdd("d", -((Weekday(Date()) - 1)), Date()) AND Date();
Current Situation: I currently have TableA with a field FieldQ, in this field the total items worked are entered each morning. At the end of the day, and week I would like to be able to open up the database this information is housed in, and see both the sum of items worked that day and that week (m-f). I already have the field for the day, I am struggling a bit with the week field for some reason. I would not only like to go in it on Friday afternoon, but any day during the week and see the total of items worked from monday to whatever day Im on. I dont want Sundays counted, but I seem to be getting them. The form isnt an issue.
What I have:
Select *
From TableA
WHERE [TableA.FieldQ] BETWEEN
DateAdd("d", -((Weekday(Date()) - 1)), Date()) AND Date();