i've got a problem for calculating OT in the report for a small payroll system;
when an employee worked on a holiday he's qualified for double overtime. so i've got tblholidays and other related tables
i tried the follwing argument
If Not IsNull(DLookup( "[Hol_id]", "tblHoliday s", "[Hol_Date] = #" & WORK_DATE & "#")) Then
otpay = [OT_HRS] * [HR_RATE] * [DOT_RATE]
Else
otpay = [OT_HRS] * [HR_RATE] * [OT_RATE]
End If
End Sub
how can i put this in a custom function in access? help appreciated
when an employee worked on a holiday he's qualified for double overtime. so i've got tblholidays and other related tables
i tried the follwing argument
If Not IsNull(DLookup( "[Hol_id]", "tblHoliday s", "[Hol_Date] = #" & WORK_DATE & "#")) Then
otpay = [OT_HRS] * [HR_RATE] * [DOT_RATE]
Else
otpay = [OT_HRS] * [HR_RATE] * [OT_RATE]
End If
End Sub
how can i put this in a custom function in access? help appreciated
Comment