D
DS
I have this SQL statement that seems to not reconize that I am trying to
INSERT the current Time and Date, I tried the #
but that doesnt seem to work. Any help appreciated.
Thanks
DS
DoCmd.SetWarnings False
TimeOutSQL = "UPDATE TimeLog
Set TimeLog.TimeOut =#TIME#,TimeLog.DateOut=#DATE# " & _
"WHERE TimeLog.EmployeeID = Forms!INOUT!TxtID " & _
"AND TimeLog.TimeOut=Null " & _
"AND TimeLog.DateOut=Null;"
DoCmd.RunSQL (TimeOutSQL)
DoCmd.SetWarnings True
INSERT the current Time and Date, I tried the #
but that doesnt seem to work. Any help appreciated.
Thanks
DS
DoCmd.SetWarnings False
TimeOutSQL = "UPDATE TimeLog
Set TimeLog.TimeOut =#TIME#,TimeLog.DateOut=#DATE# " & _
"WHERE TimeLog.EmployeeID = Forms!INOUT!TxtID " & _
"AND TimeLog.TimeOut=Null " & _
"AND TimeLog.DateOut=Null;"
DoCmd.RunSQL (TimeOutSQL)
DoCmd.SetWarnings True