M
mapmaker
Hi,
I have a form where if a (vendor) combo box field is "null", a msgbox pops up
asking the user to choose a vendor. After a vendor is chosen, an order form
pops up with the vendor info populated.
All of this is coded on a button:
if isnull(forms!frmInventory.vendor) then
msgbox "Please choose a Vendor",
forms!frmInventory.vendor.SetFocus
*****more code here*****
end if
forms!frmInventory.vendor.value = vendor
docmd.openform "frmOrders"...
vendor = forms!frmInventory.vendor.value
forms!frmOrders.vendor.SetFocus
forms!frmOrders.vendor.text = vendor
what code do I use in the '*****more code here*****' to select a value in the
combo box, then return to the frmOrders? I've tried OnDirty, ItemsSelected,
AfterUpdate, and others....
Novice to this stuff.....please be gentle
Sal
I have a form where if a (vendor) combo box field is "null", a msgbox pops up
asking the user to choose a vendor. After a vendor is chosen, an order form
pops up with the vendor info populated.
All of this is coded on a button:
if isnull(forms!frmInventory.vendor) then
msgbox "Please choose a Vendor",
forms!frmInventory.vendor.SetFocus
*****more code here*****
end if
forms!frmInventory.vendor.value = vendor
docmd.openform "frmOrders"...
vendor = forms!frmInventory.vendor.value
forms!frmOrders.vendor.SetFocus
forms!frmOrders.vendor.text = vendor
what code do I use in the '*****more code here*****' to select a value in the
combo box, then return to the frmOrders? I've tried OnDirty, ItemsSelected,
AfterUpdate, and others....
Novice to this stuff.....please be gentle
Sal