crisis2007
Technical User
I have been struggling with this for over an hour. I am trying to run an update query in vba but continuously receive a message that the syntax is incorrect. I suspect it has to do with the part about the current date. I am just not getting it. Any help is very appreciated!
Dim strSQL As String
strSQL = "UPDATE T_Employee SET T_Employee.AccessLevel = 0"
strSQL = strSQL & "WHERE T_Employee.TempEndDate < Date()"
CurrentDb.Execute strSQL
Dim strSQL As String
strSQL = "UPDATE T_Employee SET T_Employee.AccessLevel = 0"
strSQL = strSQL & "WHERE T_Employee.TempEndDate < Date()"
CurrentDb.Execute strSQL