I am trying to capture a users login ID when entering the dbase and write the ID and NOW() to a log file. My code is as follows:-
I get a runtime errors on the DoCmd statement as follows
Runntime Error 3134 Syntax Errorn in INSERT INTO Statement.
I am quite new to access so my question is probably quite stupid but could someone please advise.
Code:
NewDate = Now()
uDate = NewDate
ID = Me!cboEmployee
MsgBox (NewDate & NewName & uDate)(This Shows correct Detail)
strSQL = "INSERT INTO tbleUserLog (ID,uDate)"
DoCmd.RunSQL (strSQL)
Runntime Error 3134 Syntax Errorn in INSERT INTO Statement.
I am quite new to access so my question is probably quite stupid but could someone please advise.
Comment