Serious Sam
New Member
- Joined
- Jan 19, 2005
- Messages
- 30
Hello,
I am creating a Timesheet Database and am trying to automatically populate the data entry form with 'Normal' hours.
The set-up of the data entry form is:
Main form - frmTimeCard - has two fields.
Employee Name
WeekEndingDate
Sub Form - frmTimeCardHours - is a datasheet form with the fields:
Date
PayType (Ordinary hours, O'time, Annual Leave etc)
StartTime
EndTime
Break
Hours (= EndTime - StartTime - Break)
After the user has enter the Name and WeekEndingDate on the main form,
I would like a button on the main form that will populate the first five lines on the datasheet subform with normal hours.
(eg PayType= OrdinaryHrs, Start = 9:00, End = 17:00)
The dates on these five lines would be the five weekdays leading up to and including the WeekEndingDate.
So what I'm searching for is some hints and/or code to populate fields on a datasheet subform.
Any help much appreciated.
I am creating a Timesheet Database and am trying to automatically populate the data entry form with 'Normal' hours.
The set-up of the data entry form is:
Main form - frmTimeCard - has two fields.
Employee Name
WeekEndingDate
Sub Form - frmTimeCardHours - is a datasheet form with the fields:
Date
PayType (Ordinary hours, O'time, Annual Leave etc)
StartTime
EndTime
Break
Hours (= EndTime - StartTime - Break)
After the user has enter the Name and WeekEndingDate on the main form,
I would like a button on the main form that will populate the first five lines on the datasheet subform with normal hours.
(eg PayType= OrdinaryHrs, Start = 9:00, End = 17:00)
The dates on these five lines would be the five weekdays leading up to and including the WeekEndingDate.
So what I'm searching for is some hints and/or code to populate fields on a datasheet subform.
Any help much appreciated.