I have just completed a timesheet (using access 2003) and we are using it. However recently, I found out that for public holidays or power disruption the person with administrative privilege can clock in or clock out for all of the employees at a particular day once.
How can I make it possible for him to just enter
1. Clockin time
2. Clockout time and
3. Date
..on a form so that when he clicks on a cmdupdate button, it will put the dates and times into its respective fields in a table called tbltimesheet for all the employess.
I have two tables tblemplyees and tbltimesheet. They have a one to many relationship:
I can use insert into statement but the problem is:
First I have to check the correct names in tblemplyees table and insert into the tbltimesheet the dates and the clockin and clock out times for each of the employees respectively at once by clicking the cmdupdate button.
How can I achieve this?
A short table attributes
Table1
tblemplyees
eid autonumber (primary key)
efname text (first name)
esname text (second name)
……………………………………… …..
Table 2
tbltimesheet
tid autonumber (primary key)
eid number (foreign key)
date date/time (date clocked in)
clockin date/time (time clocked in)
clockout date/time (time clocked out)
How can I make it possible for him to just enter
1. Clockin time
2. Clockout time and
3. Date
..on a form so that when he clicks on a cmdupdate button, it will put the dates and times into its respective fields in a table called tbltimesheet for all the employess.
I have two tables tblemplyees and tbltimesheet. They have a one to many relationship:
I can use insert into statement but the problem is:
First I have to check the correct names in tblemplyees table and insert into the tbltimesheet the dates and the clockin and clock out times for each of the employees respectively at once by clicking the cmdupdate button.
How can I achieve this?
A short table attributes
Table1
tblemplyees
eid autonumber (primary key)
efname text (first name)
esname text (second name)
……………………………………… …..
Table 2
tbltimesheet
tid autonumber (primary key)
eid number (foreign key)
date date/time (date clocked in)
clockin date/time (time clocked in)
clockout date/time (time clocked out)
Comment