Home  Fees/Services  Access Templates  Tutorials  Tutorial Downloads  Articles  Search  Contact  Privacy  Links
Include Multiple Fields in DropDown List Combo Box Tutorial Access Combo Box





Combo Box Tutorials
Fill Form Field Best Code
Combo Box: All/Any
Dependent Drop Down
Cascading Combo Boxes
Fill In Other Form Fields
Lookup List-Correct Way
Lookup Lists - One Table
Speed up Combo Boxes
Table-based Combo Box
Yes/no Drop Down List


Populate Two Form Fields From Drop Down List

Using a Second Field From a Lookup List/Drop Down List Box

Let's expand a previous example drop down list example and suppose that we have account numbers associated with each shipping method and that these account numbers (for whatever reason) can change over time. Therefore we want to capture the current account number in the widget shipping record. Here is how the combo box looks in operation:

 Populate Multiple Field Drop Down List

Now I bet you want to know how I got the account number to jump from the drop down list over to the account field.

New! Download Access example of Filling Data Fields From Combo Box.

It is fairly easy - add an Event Procedure to the After Update event trigger of the combo box. Here are the lines of code that go into the procedure:
 Access Multi-Field Drop Down List Techniques

The only line that you actually have to type is the one starting with Me...  Note that Column(2) contains the account number in the combo box.  Combo boxes start counting fields at zero.  The actual fields are: Shipping_Method_ID; Shipping_Method; Account.

Don't miss our tutorial downloads for additional help with combo boxes.








A Blue Claw Database Design Article:

ODBC Links To Other DB Systems
 





Blue Claw Database Design Downloadable Tutorial:
Programming Crosstab Query Example  





A Blue Claw Database Design Template:

Preventive Maintenance (PM) Access Template
 




Contact Information

Copyright 2000-2012 Blue Claw Database Design, LLC