Private Sub cboOurPlayer_NotInList(NewData As String, Response As Integer)
Dim strSQL1 As String
Dim i As Integer
Dim Msg As String
'Exit this sub if the combo box is cleared
If NewData = "" Then Exit Sub
Msg = "'" & NewData & "' The Player is not currently in the list." & vbCr & vbCr
Msg = Msg & "do you want to add it ?"
i = MsgBox(Msg, vbQuestion + vbYesNo, "This is a new Player...")
If i = vbYes Then
strSQL1 = "Insert Into tblPlayers [PlayerFirstName] & " " & [PlayerLastName _
"values ('" & NewData & "');"
CurrentDb.Execute strSQL1, dbFailOnError
Response = acDataErrAdded
End If
End Sub
Highlighted in red i get a complie error msg. pls advise why it wont work