venu_resoju
Registered User.
- Local time
- Tomorrow, 00:14
- Joined
- Dec 29, 2010
- Messages
- 130
Hai Friends..
I have a form "PayrollCreation" which contain two text boxes named "txtDaysWorked" and "PH".
I have another form "Payroll" which contain two buttons named "PayrollbyDailyAttendance" and "PayrollbyMonthlyAttendance".I have given a code for these two buttons is as below.
Private Sub PayrollbyMonthlyAttendance_Click()
DoCmd.OpenForm "PayrollCreation"
End Sub
Private Sub PayrollbyDailyAttendance_Click()
DoCmd.OpenForm "PayrollCreation"
EndSub
but when I click "PayrollbyDailyAttendance", "txtDaysWorked= Dlookup("Somthing")" and "PH=Dlookup("Something)".
when I click "PayrollbyMonthlyAttendance", "txtDaysWorked= "" or 0" and "PH="" or 0".
how can I do this. Please anybody give me any idea...
Thanks in advance..
I have a form "PayrollCreation" which contain two text boxes named "txtDaysWorked" and "PH".
I have another form "Payroll" which contain two buttons named "PayrollbyDailyAttendance" and "PayrollbyMonthlyAttendance".I have given a code for these two buttons is as below.
Private Sub PayrollbyMonthlyAttendance_Click()
DoCmd.OpenForm "PayrollCreation"
End Sub
Private Sub PayrollbyDailyAttendance_Click()
DoCmd.OpenForm "PayrollCreation"
EndSub
but when I click "PayrollbyDailyAttendance", "txtDaysWorked= Dlookup("Somthing")" and "PH=Dlookup("Something)".
when I click "PayrollbyMonthlyAttendance", "txtDaysWorked= "" or 0" and "PH="" or 0".
how can I do this. Please anybody give me any idea...
Thanks in advance..