I'm actually doing it a different way other than the SQL way but the SQL way makes more sense but I can't do a UNION of one field with a SELECT that has two fields (VendorID, VendorName)...
My rowsource for the combobox is
Code:
SELECT [tblVendor].[VendorID], [tblVendor].[VendorName] FROM tblVendor ORDER BY [VendorName];
My AfterUpdate() for VendorName is
Code:
If Me.[cboVendorName].Value = "13" Then
DoCmd.OpenForm "frmAddVendor"
Else
DoCmd.GoToControl "cboVendorName"
End If
Where Value 13 is VendorID
I don't like this because I have an actual record Add New Vendor... in the tblVendor, I don't want to have that record in there, I like the UNION better. So when you drop down to Add New Vendor... it pops up the frmAddVendor, when you save that it closes and you go back to the previous form and on that same combo box it has a GotFocus() which runs a requery showing your new vendor. I want to be able to use Add New ____... for more than just vendor, model, type, etc...
This might some convoluted but thanks for the help.