Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Notinlist -Combo Box

Status
Not open for further replies.

lchungwe

Technical User
Mar 14, 2000
14
0
0
SG
I try using this code to add ON not inl ist event but i was prompt but it is not added to the table that this combo table but the data entry table instead and could not reflect for new records. Please advise when i go wrong.

' Dim 3rdParty As Integer
New3rdParty = MsgBox("3rd Party Not Found! Do You Want to Add This 3rd Party?", 36, "New 3rd Party")
If New3rdParty = 6 Then 'New3rdParty is YES
' Continue without displaying default error message.
Me![3rd_party].RowSource = "SELECT '" & NewData & "' FROM [3rd_party] UNION SELECT DISTINCTROW [3rd_party] FROM [Database]"
Response = DATA_ERRADDED
Else
Response = DATA_ERRCONTINUE
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top