Private Sub cmbContact_NotInList(NewData As String, Response As Integer)
Select Case MsgBox("Add new contact?", vbYesNo)
Case vbYes
insSQL = "INSERT INTO tblContact( contact ) " & _
"VALUES ( """ & NewData & """ );"
DoCmd.SetWarnings False
DoCmd.RunSQL (insSQL)
DoCmd.SetWarnings True
Response = acDataErrAdded
Case vbNo
Me.Undo
Response = acDataErrContinue
End Select
End Sub
insSQL = "INSERT INTO Project Managers( PM Name ) " & _
"VALUES ( """ & NewData & """ );"
insSQL$ = "INSERT INTO Project Managers( PM Name ) " & _
"VALUES ( """ & NewData & """ );"