I am creating a form that will allow an employee to track the amount of time spent on a specific job. I may be over thinking it because I’ve thoroughly confused myself. Here’s what I have:
First, this table is in use by other individuals so I cannot modify the fields but I can change the field values. I say this because I know the solution would be much easier if the design was different.
A table (Orders) containing information for multiple Jobs (primary key field - Job Number). Each Job has up to six sub-jobs (field - Job 1, Job 2, etc.). Each sub-job has the amount of processing time (field – Job 1 Hours, Job 2 Hours, etc.).
I want to create a form where the employee can enter the sub-job number with the start/stop time. The database would then search the table for the record and update the appropriate hour’s field.
Ex.
Sub-Job – 12345.3
Start Time – 2:15PM
Stop Time – 4:15PM
Sub-Job “12345.3” is in the “Job 2” field of Job Number “12345” so “Job 2 Hours” field would get updated to add 2.00 to the existing value.
The code would first have to locate which field the sub-job was in then update the corresponding hours field.
Any help would be appreciated.