Thank you for viewing my question.
I have been looking through this forum and others for a solution, but haven't been able to find one that works in this way.
I want to update xEmployees.SessionCount with the value 0, when a certain condition is met, but am having issues with the Where clause (I think).
Basically SessionCount will be incremented by 1 until a threshold is reached, at which point I want to reset the value of SessionCount to 0.
The code below throws up Error 3705.
LoggedUserName is a public variable.Code:CurrentDb.Execute "UPDATE xEmployees SET SessionCount = 0" & "WHERE xEmployees.WebUsername = " & LoggedUserName
I've successfully done similar things in the past, but always based the Where clause on values taken from a form, which seems to be what most examples I have found show.
I'm pretty sure it's a syntax issue, but haven't been able to figure it out.
Any assistance will be greatly appreciated.