I'm running MS Access 2007 front end with an SQL 2014 server back end.
I've got a timekeeping system that tracks time for employees. Employees are able to use multiple computers to sign in/out and keep track of their time and is used for payroll purposes so it's pretty important to make sure it is working correctly.
We've run into an issue where a computer's date and time got messed up. This caused all sorts of problems with payroll. The ideal solution would be to always use the server's date/time so we have one gold standard to keep track of time.
Basically when a record is created, it takes the server timestamp as "Time Started". When the user tracks their time the "Time Ended" field is filled in.
Is there some way to get the server to fill in the timestamp without using the Now() function in access or query the server date/time so I can use that to populate the record? The Now() function uses the current system date and time and the cause of this problem.
EDIT 1:
See below for update query
DoCmd.RunSQL "UPDATE dbo_tbl_Timekeeping SET fld_End_Time = Now() WHERE fld_Employee_ID = " & Me.EmployeeID
The problem here is that Access does not recognize functions such as GETDATE() it tells me that the function is undefined (See this link)