View Full Version : What is causing this error


mrrayj60
10-10-2009, 10:10 AM
I've tried to go the insert method but get an error expected: end of statement. I'm just trying a few simply fields before I work on dates and cash. It highlights the word(table) vrcfines . Its in a command button, click. 2003access

INSERT INTO vrcfines ([ubl][name])
VALUES (vrcedit!txtubl), (vrcedit!txtname)


** problem resolved **

wiklendt
10-11-2009, 12:24 AM
i use this code:


'Append the selected entry to the associated table
CurrentDb.Execute "INSERT INTO tblMassageData_AssObservations (MassageID, ObservationID) " & _
"VALUES (" & Me.txtMassageID & ", " & selection & ")"


maybe try to prefix your code with CurrentDb.Execute ? (don't forget the quotation marks)