I have a form that employees fill out to track their work. I need to be able to get the total time they worked, the detail of what case numbers they processed and a count of how they were processed.
Easy enough, right? NOT ! If they do not close and reopen the form for the day ... works like a charm but....
It is conceivable they will close their form to go to lunch and then reopen the form when they come back ... this generates a 2nd ID for the days entry. This means that i now have 2 records for the date for the employee. so if they work 2 case numbers on session 1 and then work 2 case numbers on session 2 and put an hour in at each session ... their total time for the day should be 2 hours. however what I get is an hour attached to each case number processed so the total time comes out as 2 hours per session rolling up to 4 hours.
I have a table that records id, name, date, TCM, and time id. A table that records time id, hours, min. And a table that records the details, Case # , upload, utl, problem.
How do you suggest i structure my database to allow me to record:
Record ID#4 Name: Goofy Dawg Date: 1/8/21 TCM: true Total Time: 3:40 Total Processed: 5
Id# 1 123456 upload (time this session 1:40)
Id#1 1123456 problem
********(logout ... log back into form)**********
Id#2 3333333 UTL (time this session 2:00)
id#2 888888 upload
id#2 999444 upload
The master record is linked to the time record by the key field undmtid. The detail record is linked to the master by undmid. The undmtid generates a record recording the time for each time the form was used. So if i query just this table and total i get the total 3:40 but when I create a report grouped by name i end up with 17 hours as the total (3:40 x 5 case numbers processed).
Help! it has to be structural .. i just don't know how!
Easy enough, right? NOT ! If they do not close and reopen the form for the day ... works like a charm but....
It is conceivable they will close their form to go to lunch and then reopen the form when they come back ... this generates a 2nd ID for the days entry. This means that i now have 2 records for the date for the employee. so if they work 2 case numbers on session 1 and then work 2 case numbers on session 2 and put an hour in at each session ... their total time for the day should be 2 hours. however what I get is an hour attached to each case number processed so the total time comes out as 2 hours per session rolling up to 4 hours.
I have a table that records id, name, date, TCM, and time id. A table that records time id, hours, min. And a table that records the details, Case # , upload, utl, problem.
How do you suggest i structure my database to allow me to record:
Record ID#4 Name: Goofy Dawg Date: 1/8/21 TCM: true Total Time: 3:40 Total Processed: 5
Id# 1 123456 upload (time this session 1:40)
Id#1 1123456 problem
********(logout ... log back into form)**********
Id#2 3333333 UTL (time this session 2:00)
id#2 888888 upload
id#2 999444 upload
The master record is linked to the time record by the key field undmtid. The detail record is linked to the master by undmid. The undmtid generates a record recording the time for each time the form was used. So if i query just this table and total i get the total 3:40 but when I create a report grouped by name i end up with 17 hours as the total (3:40 x 5 case numbers processed).
Help! it has to be structural .. i just don't know how!