Autocomplete of specific fields in a Form

B

bling

Hi all,

I have a form with tabbed pages. At the top I want the user to select a Vendor ID, the next field contains the Vendor Name, but I want this to come up automatically when they select the Vendor ID. Other data has to be entered by the user on other fields on the form as well as in other subforms.

I have tried creating an autolookup query and putting this in the form. However, it doesn't seem to work.

Any help is greatly appreciated.
TIA
 
R

Reggie

Bling, Assuming your vendor combobox has 2 columns(VendorID & VenderName)
set the after update event of the combo to something like:(Keep in mind the
combo boxes are zero(0) based so that column 1 is actual column 0.):

I'm assuming that the VendorID is in the first column.
Private Sub VendorCombo_AfterUpdate()
Me.VendorName = Me.VendorCombo.Column(1)
End Sub




--
Reggie

----------
bling said:
Hi all,

I have a form with tabbed pages. At the top I want the user to select a
Vendor ID, the next field contains the Vendor Name, but I want this to come
up automatically when they select the Vendor ID. Other data has to be
entered by the user on other fields on the form as well as in other
subforms.
I have tried creating an autolookup query and putting this in the form.
However, it doesn't seem to work.
 
B

bling

Thanks Reggie, will try it out.

Reggie said:
Bling, Assuming your vendor combobox has 2 columns(VendorID & VenderName)
set the after update event of the combo to something like:(Keep in mind the
combo boxes are zero(0) based so that column 1 is actual column 0.):

I'm assuming that the VendorID is in the first column.
Private Sub VendorCombo_AfterUpdate()
Me.VendorName = Me.VendorCombo.Column(1)
End Sub




--
Reggie

----------

Vendor ID, the next field contains the Vendor Name, but I want this to come
up automatically when they select the Vendor ID. Other data has to be
entered by the user on other fields on the form as well as in other
subforms.
However, it doesn't seem to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top