Question : How can I use a combobox field to auto-fill other fields on a form?

I have a form that will ask for the following fields:

Company Name
Address
City
State
ZIP
Phone
2nd Phone
Fax
2nd Fax

What I need help with is once the company name is selected the rest of the fields will auto-populate with the data associated with that compnay name.  I have built a table with the company information.

Thanks in advance for your help.

Answer : How can I use a combobox field to auto-fill other fields on a form?

Hi,

1.  Right Click on your form and click Design View.
2.  Click on the Combo Box on the Design tab, Controls area of the ribbon.
3.  Point to your form in the area you want and click again to put the control on the form.
4.  Right click on the combo box you just created and select Properties.
   (Note the name of the control in the box)
5.  Click the Data tab and select your table from the list as a rowsource
6.  Click the Event tab and click in the Ater Update row.
7.  Select [Event Procedure] from the list and click the ... to the righ that will allow you to build an event.
8.  Enter the code above.

Give it a try.

Bill



Random Solutions  
 
programming4us programming4us