I have the following line of code in a sub in which I want to set a date/time field to equal the current date/time when a particular sub is executed:
I cannot get this to work. I've tried the following, each giving me either a syntax or too few parameters error:
LastEvaluated = Now
LastEvaluated = " & Now() & " WHERE...
LastEvaluated = #" & Now() & "# WHERE...
LastEvaluated = #" & Now & "# WHERE...
I thought this would be simple! How do I write this?
Code:
CurrentDb.Execute "UPDATE StdDegReq SET LastEvaluted = Now() WHERE StdDegReqId = " & lngStdDegReqId
LastEvaluated = Now
LastEvaluated = " & Now() & " WHERE...
LastEvaluated = #" & Now() & "# WHERE...
LastEvaluated = #" & Now & "# WHERE...
I thought this would be simple! How do I write this?
Comment