ACC: Filter By Form Options Do Not Apply to Lookup Fields (142472)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q142472 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.
- Select the Lookup field, click the Lookup tab, select 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 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.
STATUS
This behavior is by design.
REFERENCES
For more information about limiting query results, search the Help Index
for "TopValues Property," or ask the Microsoft Access 97 Office Assistant.
Modification Type: | Major | Last Reviewed: | 10/22/2003 |
---|
Keywords: | kbprb kbusage KB142472 |
---|
|