the code above is suppose to increment a counter in the table Timehandle by 1 wherever the agent field is equal to the value stored in a global variable called gsUser. Does anyone know what is wrong with the syntax, thanks.Code:CurrentDb.Execute "UPDATE TimeHandle SET [counter] = [counter] +1 WHERE [agent] = " & gsUser