I'm working on a program in MS Access, and I'm just trying to enter some data into a test table to see how it works. I can't for the life of me see what is wrong with the syntax.
I'm getting a 3134 error code.
Maybe there is a reserved word I'm using? All of the data are strings (even things that probably should be something else). I changed them to strings to try and figure out what the problem is).
CurrentDb.Execute " INSERT INTO TempReg " _
& "(Timestamp, LName, FName, Grade, InventoryNumber, SerialNumber, MacAddress, PaidIn, CheckNum) VALUES " _
& "('test', 'test2', 'test', 'test', 'test', 'test', 'test', 'test', 'test');"
Just for fun, when I run the following code it works fine. I don't see what is fundamentally different.
CurrentDb.Execute " INSERT INTO TestTable " _
& "(SampleText, MoreText) VALUES " _
& "('test', 'test2');"
Thank you!