I don't know the best way about doing this but here is what I have (I am a newbie to all this)
I have set up a roster form where the table holds all the staff members details (ie. age, name, employee number, days of the week worked with the times worked in them etc)
I can get the staff members times worked updated through a form to the table easily enough, but what I need to do now is have it update the total hours worked for the week etc added to the table so a report can be printed.
The form calculates all the information as I input the hours worked for each day and at the end of the form produces fields for:
[FullTotalHours] = Total number of hours worked for the week
[FullNormal] = Total of hours at normal rate of pay
[FullOT1] = Total of hours worked at overtime 1.5
[FullOT2] = Total of hours worked at overtime 2.0
I need this information printed on a report and if possible saved to the table aswell.
I have a section on the staff members table for:
[NormCost]
[OT1Cost]
[OT2Cost] etc.....
How can this be done?
I have tried this:
[Event Procedure]
Private Sub FullTotalHours_AfterUpdate()
Me![NormCost] = Me![WedMinusLunch]
End Sub
But it doesn't work.
I also tried this on the report
Forms!EmployeesListing!FullTotalHours
But this just produced an error on my report.
Any help would be appreciated.
ps. I am a newbie so please be explicit in the details as the macros etc confuse the crap outta me "If who I am is what I have, then who will I be if what I have is taken from me?"
I have set up a roster form where the table holds all the staff members details (ie. age, name, employee number, days of the week worked with the times worked in them etc)
I can get the staff members times worked updated through a form to the table easily enough, but what I need to do now is have it update the total hours worked for the week etc added to the table so a report can be printed.
The form calculates all the information as I input the hours worked for each day and at the end of the form produces fields for:
[FullTotalHours] = Total number of hours worked for the week
[FullNormal] = Total of hours at normal rate of pay
[FullOT1] = Total of hours worked at overtime 1.5
[FullOT2] = Total of hours worked at overtime 2.0
I need this information printed on a report and if possible saved to the table aswell.
I have a section on the staff members table for:
[NormCost]
[OT1Cost]
[OT2Cost] etc.....
How can this be done?
I have tried this:
[Event Procedure]
Private Sub FullTotalHours_AfterUpdate()
Me![NormCost] = Me![WedMinusLunch]
End Sub
But it doesn't work.
I also tried this on the report
Forms!EmployeesListing!FullTotalHours
But this just produced an error on my report.
Any help would be appreciated.
ps. I am a newbie so please be explicit in the details as the macros etc confuse the crap outta me "If who I am is what I have, then who will I be if what I have is taken from me?"