ACC2000: Filter By Form Options Do Not Apply to Lookup Fields (208573)
The information in this article applies to:
This article was previously published under Q208573 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you use the Filter By Form feature, a combo box or list box contains
more values than the number that you specified in the Don't display list where more than this number of records read box on the Edit/Find tab of the Options command on the Tools menu.
CAUSE
The Filter By Form combo box or list box is based on a Lookup field and
the field's DisplayControl property is set to Combo Box or List Box in the underlying table. Microsoft Access uses the field's RowSource property setting from the table to fill the combo box or list box with values, instead of reading records from the form's recordset.
RESOLUTION
You can set the field's RowSource property in the underlying table to a top values query, which limits the number of records (or rows) returned to the field's combo box or list box. To do so, follow these steps:
- Open the table with the Lookup field in Design view.
- Click the Lookup field, click the Lookup tab, click the RowSource
property, and then click the Build (...) button to open the Query builder.
- In the Query builder, click Properties on the View menu.
- In the Query Properties box, for the TopValues property, enter the maximum number of items that you want in the field's value list.
- Close and save the query.
- Close and save the table. Note that when you later use the Filter By
Form feature, the value list for your Lookup field contains only as
many rows as you specified in step 4.
REFERENCESFor more information about limiting reports, click Microsoft Access Help on the Help menu, type TopValues property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbprb kbusage KB208573 |
---|
|