A
Andy
In the Below code I am attempting to update 3 fields int
the table Top50 as a result of the NOTINLIST event. I can
get 2 (Accountname & City) but not the third (phone)to
update. Thank you in advance for your help.
Andy
Private Sub Account_Name_NotInList(NewData As String,
Response As Integer)
Dim strMsg As String, strTitle As String
Dim strsql As String
Dim ctl As Control
Dim stAns As String
Set ctl = Me.[Account Name]
strMsg = NewData & " Is Not Recognised By The System." &
vbCrLf & vbCrLf & _
"Do You Wish To Add This Data To The System?"
strTitle = " Add Status"
If MsgBox(strMsg, vbYesNo + vbDefaultButton2 +
vbQuestion, strTitle) = vbYes Then
stAns = InputBox("Enter The Account Location")
strsql = "INSERT INTO Top50 (AccountName, City, Phone)
VALUES (""" & NewData & """, """ & stAns & """)"
the table Top50 as a result of the NOTINLIST event. I can
get 2 (Accountname & City) but not the third (phone)to
update. Thank you in advance for your help.
Andy
Private Sub Account_Name_NotInList(NewData As String,
Response As Integer)
Dim strMsg As String, strTitle As String
Dim strsql As String
Dim ctl As Control
Dim stAns As String
Set ctl = Me.[Account Name]
strMsg = NewData & " Is Not Recognised By The System." &
vbCrLf & vbCrLf & _
"Do You Wish To Add This Data To The System?"
strTitle = " Add Status"
If MsgBox(strMsg, vbYesNo + vbDefaultButton2 +
vbQuestion, strTitle) = vbYes Then
stAns = InputBox("Enter The Account Location")
strsql = "INSERT INTO Top50 (AccountName, City, Phone)
VALUES (""" & NewData & """, """ & stAns & """)"