ACC: Four Ways to Move to a Record from a Combo Box Selection (100132)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q100132
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
This article lists four different methods of moving to a specific record
based on a combo box selection.
Method 1: In the AfterUpdate property of the combo box, call a macro
using the FindRecord action.
Method 2: In the AfterUpdate property of the combo box, call a macro
using the ApplyFilter action.
Method 3: Use a Form/Subform, with the combo box in the main form and
the data in the subform, bound by the LinkMasterFields and
LinkChildFields properties.
Method 4: Base the form on a query that joins two tables and bind the
combo box to the field that controls the join, using the
AutoLookup technique.
These four methods are outlined in the "More Information" section and are
based on the sample database Northwind.mdb (or NWIND.MDB in Microsoft
Access 2.0 or earlier).
REFERENCES
For more information about AutoLookup queries, type "AutoLookup" in the
Office Assistant, click Search, and then click to view "About AutoLookup
queries that enter data automatically."
For more information about referencing controls on a form, type
"Identifiers" in the Office Assistant, click Search, and then click to view
"Use values in expresions."
For more information about using the Control Wizard, type "control wizard
find record" in the Office Assistant, click Search, and then click to view
"Find a record by selecting a value from a list."
For more information on how to use the Filter By Form technique, type
"Filter By Form" in the Office Assistant, click Search, and then click to
view "Create a Filter in a Table, Query, or Form."
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kbhowto kbusage KB100132 |
---|
|