I am getting a sytax error:
Code:
Private Sub cmdSaveAnswers_Click()
Dim i As Integer
If Not IsNull(Me.SSNum) And Not IsNull(Me.cboAgent) Then
For i = 1 To 21
CurrentDb.Execute "INSERT INTO tblSCSMedAns(SSNum, Agent, QID, Answer, AuditDte) VALUES('" &
Me.SSNum & "', " & Me.cboAgent & ", " & i & ", " & Me("Check" & i) & ", #" & Date() & "#)"
Next
DoCmd.Close acForm, Me.Name, acSaveNo
End If
End Sub
I named all the check boxes accordingly. Switch the agent to agentid number. Declared the integer. Syntax error???