I'm trying to add a record to a table called Results. At the moment, when I run Err.Number and Err.Description I receive 3134 and "Syntax error in INSERT INTO statement." I've tried moving the "Values" syntax but no luck. Any ideas why this might be occurring?
Private Sub addResult_Click()
Dim strSQL As String
strSQL = "INSERT INTO Results (Student_ID, Class_ID, Test_Type,
Student_Score, Total_Score, Level) VALUES (" & Me.cboStudents.Column(0) & ",
" & Me.cboTeacher.Column(0) & ", '" & Me.cboTestType.Column(1) & "', " &
Me.txtStudentScore.Value & ", " & Me.txtTotalScore.Value & ", '" &
Me.cboTeacher.Column(2) & "')"
CurrentDb.Execute strSQL