scottappleford
Registered User.
- Local time
- Today, 19:13
- Joined
- Dec 10, 2002
- Messages
- 134
Hi
I am trying to set up a table structure for timesheets. I have read through the forums and found some good advice connected with what i can do to develop the db, however i am having trouble with the table structure e.g. in a day you can work RT, OT & DT.
I have a tbltimecard which will be the main form with TimecardID(PK), date, work codeID, companyID etc.
I then have a tbltimecadhours with timecardhoursID (PK), timecardID (FK), employeeID (which needs to filter according to the company selected), then I have RT, DT, OT number fields for the hours, but DT & OT could be left empty on alot of occasions.
i have a work code table and a work code description table joined with the work code linked to the tbltimecard.
I also have tblemployee linked to tblecompany with tble company linked to tble timecard.
Is this correct?
I could have the RT, OT & DT fields in one field as a look up but then i could have the name of an employee repeated upto three times on one sheet. I suppose the answer would be a new table? I am not sure.
Thanks for your input?
Scott
I am trying to set up a table structure for timesheets. I have read through the forums and found some good advice connected with what i can do to develop the db, however i am having trouble with the table structure e.g. in a day you can work RT, OT & DT.
I have a tbltimecard which will be the main form with TimecardID(PK), date, work codeID, companyID etc.
I then have a tbltimecadhours with timecardhoursID (PK), timecardID (FK), employeeID (which needs to filter according to the company selected), then I have RT, DT, OT number fields for the hours, but DT & OT could be left empty on alot of occasions.
i have a work code table and a work code description table joined with the work code linked to the tbltimecard.
I also have tblemployee linked to tblecompany with tble company linked to tble timecard.
Is this correct?
I could have the RT, OT & DT fields in one field as a look up but then i could have the name of an employee repeated upto three times on one sheet. I suppose the answer would be a new table? I am not sure.
Thanks for your input?
Scott