MS_Access_Amature
Registered User.
- Local time
- Today, 09:05
- Joined
- Nov 10, 2010
- Messages
- 56
I have a form with a listEmployees (listbox), a ButtonPunchIn, and a ButtonPunchOut.
When I select an employee from the listbox and click ButtonPunchIn the date and time saves in the EmployeesT. When I click ButtonClockOut I want it to update the selected employee in the list box. Can some please help me. I have this code but is not working.
private sub btnClockOut_click()
docmd.runsql "update EmployeeT set TimeOut=Now() where employeeId=" & me.employeeid
end sub
When I select an employee from the listbox and click ButtonPunchIn the date and time saves in the EmployeesT. When I click ButtonClockOut I want it to update the selected employee in the list box. Can some please help me. I have this code but is not working.
private sub btnClockOut_click()
docmd.runsql "update EmployeeT set TimeOut=Now() where employeeId=" & me.employeeid
end sub