ACC2000: Filter by Form with Combo Box Does Not Work in an Access Project (264791)
The information in this article applies to:
This article was previously published under Q264791 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS
In an Access project, when you run a filter by form that has a combo box, after you select an item from the combo box and apply the filter, you receive the following error messages:
Cannot apply filter on one or more fields specified in the Filter property.
"Microsoft Access didn't apply the filter. Microsoft Access may not be able to apply the filter if you entered an invalid data type in one of the fields. Do you want to close the filter anyway?"
CAUSE
The filter is not applying the bound column of the combo box. Access needs the bound column to look up the matching records.
RESOLUTION
Instead of running a filter by form that has a combo box, create a form that emulates query-by-form by implementing custom Visual Basic for Applications code.
For additional information about emulating query-by-form, click the article number below
to view the article in the Microsoft Knowledge Base:
235359 ACC2000: Implementing Query-by-Form in an Access Project
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbbug kberrmsg kbpending KB264791 |
---|
|