RunSQL

jammerdk

New member
Local time
Today, 20:19
Joined
Sep 12, 2006
Messages
1
Hi trying to get my runsql to work

DoCmd.RunSQL "INSERT INTO tblLogTimer (Operator, Dato, LogOn, LogOff, LogTime, Status) VALUES ('" & StrOperator & "', '" & Datotext & "', '" & MeetTime & "', '" & LeaveTime & "', '" & LogTime & "', '" & StrMeetStatus & "')

But if keep updating all the records and I'm only interesting to get the 1 updated...so I've been trying this ....

DoCmd.RunSQL "INSERT INTO tblLogTimer (Operator, Dato, LogOn, LogOff, LogTime, Status) VALUES ('" & StrOperator & "', '" & Datotext & "', '" & MeetTime & "', '" & LeaveTime & "', '" & LogTime & "', '" & StrMeetStatus & "') WHERE Operator=me.txtLogOperator"""

but the access keep telling that I'm needing a ";" but where should I put it???
 

Users who are viewing this thread

Back
Top Bottom