Code:
UPDATE TableIN SET EndTime = Now() WHERE EmpID=" & Tables.TableIN.EmpID & " AND EndTime IS NULL
The problem is why would you look at TableIN.EmpID??? The table has LOTS of EmpID numbers. You need ONE specific EmpID to update the end time. That is why June7 used Me.tbxEmpID. That control has the EmpID that you want to use to update the end time.
Code:
CurrentDb.Execute "UPDATE TableIN SET EndTime = Now() WHERE EmpID = " & Me.tbxEmpID & " AND EndTime IS NULL", dbFailOnError
I just tried it and it updated the EndTime.
Also, you should NOT use Tables.TableIN.EmpID to refer to a table of a field contained in the table.