Front End: Access 2010; Back End SQL Server 2008
The following produces this error messages and I do not know why: Runtime error '3134' Syntax error in INSERT INTO statement.
The database definitions are:
partshortages_I D int
Date varchar(12)
By varchar(50)
note text
Thank you.
The following produces this error messages and I do not know why: Runtime error '3134' Syntax error in INSERT INTO statement.
Code:
zSQL2 = _
"INSERT INTO [dbo_Notes] " & _
"(partshortages_ID, date, [by], [note])" & _
" VALUES(" & _
" " & gblDBResult2 & _
", '" & RDateAdded & "'" & _
", '" & Rbuyer & "'" & _
", '" & Me.Notes.Value & "')"
Debug.Print zSQL2
DoCmd.SetWarnings False
DoCmd.RunSQL zSQL2
partshortages_I D int
Date varchar(12)
By varchar(50)
note text
Thank you.
Comment