C
cyberpyxi via AccessMonster.com
I have a table, Techs, that lists the FirstName (Primary Key), other info,
and HoursThisWeek. There is a form used to enter job visits. On that form,
when you pick the FirstName, it fills in HoursThisWeek from the Tech table.
No problem, got that. My issue runs into the fact that I have to store it by
week. I have it set up so that it fills in HoursThisWeek, adds the current
job hours to that field, and even updates the Techs table. However, I need it
to reset to zero every monday. I can go in and manually set it to zero on
Mondays, but the problem is that when I run my update query after entering
jobs for the new week, the techs that did not have a job put in yet... their
hours update to the last call they DID have hours for.
I.E. If it's Monday, and Jeff went on 2 calls for 3 hours each, running this
update hours query puts him to 6 hours (after I manually set it to 0), but
since Robert did not have any jobs yet, it changes his 0 to 40 from last week.
Any way to address this?
and HoursThisWeek. There is a form used to enter job visits. On that form,
when you pick the FirstName, it fills in HoursThisWeek from the Tech table.
No problem, got that. My issue runs into the fact that I have to store it by
week. I have it set up so that it fills in HoursThisWeek, adds the current
job hours to that field, and even updates the Techs table. However, I need it
to reset to zero every monday. I can go in and manually set it to zero on
Mondays, but the problem is that when I run my update query after entering
jobs for the new week, the techs that did not have a job put in yet... their
hours update to the last call they DID have hours for.
I.E. If it's Monday, and Jeff went on 2 calls for 3 hours each, running this
update hours query puts him to 6 hours (after I manually set it to 0), but
since Robert did not have any jobs yet, it changes his 0 to 40 from last week.
Any way to address this?