V
venajoe
Dear Access 2007 VBA Gurus,
I have a assets database (rather uncreatively named "Assets"). I use a form
(named "Asset Acquisition Input Form New") to enter new assets. The
"Manufacturer" field (combo box name "Manufacturers_ID) on this form is a
lookup to a Manufacturers table. What I want to happen is when I enter an
item that is not in the lookup list, I want a message box to prompt me to add
the new entry to the underlying table, or to cancel and select an item from
the list. I have no trouble with the MsgBox command itself. What I don't
know how to do is to read the new data I've typed into the combo box (that
isn't on the list), then write it to the underlying Manufacturers table. I
think then I can use the appropriate MsgBox Response argument to requery and
add that new entry to the list.
At any rate, as you can tell, I'm a total VBA newbie. I have already spent
hours trying to peruse the Access 2007 VBA help files to figure this
out--unsuccessfully. Last night I ordered a copy of "Access 2007 VBA for
Dummies", which is apropo. In the meantime, can one of you help a VBA
ignoramus out?
Thanks!
I have a assets database (rather uncreatively named "Assets"). I use a form
(named "Asset Acquisition Input Form New") to enter new assets. The
"Manufacturer" field (combo box name "Manufacturers_ID) on this form is a
lookup to a Manufacturers table. What I want to happen is when I enter an
item that is not in the lookup list, I want a message box to prompt me to add
the new entry to the underlying table, or to cancel and select an item from
the list. I have no trouble with the MsgBox command itself. What I don't
know how to do is to read the new data I've typed into the combo box (that
isn't on the list), then write it to the underlying Manufacturers table. I
think then I can use the appropriate MsgBox Response argument to requery and
add that new entry to the list.
At any rate, as you can tell, I'm a total VBA newbie. I have already spent
hours trying to peruse the Access 2007 VBA help files to figure this
out--unsuccessfully. Last night I ordered a copy of "Access 2007 VBA for
Dummies", which is apropo. In the meantime, can one of you help a VBA
ignoramus out?
Thanks!