ab*******@aapt.net.au wrote in
news:11**********************@m73g2000cwd.googlegr oups.com:
Hi,
Am simply trying to populate a text box in the input form with
a value once a selection is made from a drop down box.
Table Name: BDMAMList
BDM UserID
Joe GRXCVF
Adam HNANDL
So if the drop down box selects Joe, then a text box is
automatically populated with GRXCVF.
Is Dlookup the correct function to be using for this?
Cheers,
Adam
much simpler is to modify the combobox to hold the two values,
(if you make the width of the second column 0" it will not be
seen) and use a single line of code in the combobox_AfterUpdate
event to stuff the value of the second column into the textbox.
me.textbox.value = me.combobox.column(1)
replace textbox and combobox with the correct identifiers in
your form.
Note: the 1 is not an error, the first column is 0.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from
http://www.teranews.com