I have a Main form with 2 subforms. The main form contains records from the Table “Employees”, showing “Hourly Rate, “Hours per Pay Period” and “Total of paycheck”. I have added a Text Box that calculates Overtime owed if there is any.
Subform 1 shows the calculation of the Taxes owed from the field “Total of paycheck” on the main form.
Subform 2 is to manually enter the calculated field into the Transaction Table
After calculating the regular hours, plus overtime hours, I want to enter that calculated amount to “Total of paycheck” on the main form and recalculate the Taxes owed in Subform 1.
I have the AfterUpdate set to
Private Sub Total_of_pay_Check_AfterUpdate()
Form"frmpayrollrecommsub"Requery
End Sub
I'm getting Syntax Error. I've tried several different arguments and it's not working.
Subform 1 shows the calculation of the Taxes owed from the field “Total of paycheck” on the main form.
Subform 2 is to manually enter the calculated field into the Transaction Table
After calculating the regular hours, plus overtime hours, I want to enter that calculated amount to “Total of paycheck” on the main form and recalculate the Taxes owed in Subform 1.
I have the AfterUpdate set to
Private Sub Total_of_pay_Check_AfterUpdate()
Form"frmpayrollrecommsub"Requery
End Sub
I'm getting Syntax Error. I've tried several different arguments and it's not working.