Four ways to move to a record from a Combo Box selection (287658)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article was previously published under Q287658 Moderate: Requires basic macro, coding, and interoperability
skills. This article applies only to a Microsoft Access database (.mdb).
For a Microsoft Access 2000 version of this article,
see
209537. SUMMARY This article shows you four methods of moving to a specific
record based on selection from a combo box. The methods are as follows:
- In the AfterUpdate event of a combo box, execute code that
uses the FindFirst method.
- In the AfterUpdate event of a combo box, call a macro that
requeries the Filter property of a form.
- Use a Form/Subform, with a combo box on the main form, and
the data in the subform, bound by the LinkMasterFields and LinkChildFields properties of the subform control.
- Base the form on a query that joins two tables, and then
use the AutoLookup technique to bind a combo box to the field that controls the
join.
These four methods are outlined in the "More Information"
section of this article and are based on the sample database Northwind.mdb.
REFERENCESFor more
information about AutoLookup queries, click Microsoft Access Help on the Help menu, type autolookup in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about referencing
controls, click Microsoft Access Help on the Help menu, type refer to controls in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about using the control wizard to
find a record, click Microsoft Access Help on the Help menu, type find a record by selecting a value from a list in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For
more information about how to use the Filter by Form technique, click Microsoft Access Help on the Help menu, type create a filter in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbDatabase kbProgramming kbdesign kbhowto kbusage KB287658 |
---|
|