I get this error when I want to send data from form into table. This is Visual Basic code I wrote in MS Access:
Private Sub btnAdd_Click()
CurrentDb.Execute "INSERT INTO Book(book_id,title,language_id,author_id,year_published,num_pages,publisher_id,num_copies)" & _
"Values (" & Null & ",'" & Me.txtTitle & "','" & Me.cbLanguage.Column(0) & "','" & Me.cbAuthor.Column(0) & "','" & Me.txtYearPublished & "','" & _
Me.txtNumPages & "','" & Me.cbPublisher.Column(0) & "','" & Me.txtNumCopies & "')"
End Sub
book_id is the primary key and auto-number.
Arrow indicating error appears on the 4th line of code.