Microsoft KB Archive/264254

= ACC2000: Error Message: &quot;One or More Operators in the Filter Expression Is Invalid&quot; Error When You Apply a Filter in an Access Project =

Article ID: 264254

Article Last Modified on 1/26/2005

-

APPLIES TO


 * Microsoft Access 2000 Standard Edition

-



This article was previously published under Q264254



Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access project (.adp).



SYMPTOMS
If you are not a member of the db_owner role and you try to apply a filter (by using a filter by selection, a filter by form, or a server filter) to a datasheet or to a form in an Access project, the filter is not applied, and you may receive the following error message:

One or more operators in the filter expression is invalid.

For a valid list of operators refer to the help file.



RESOLUTION
To resolve this problem, obtain the latest Microsoft Jet 4.0 service pack that contains an updated version of the Microsoft Jet 4.0 database engine.

For additional information about how to obtain the latest Microsoft Jet 4.0 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

239114 How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0 Database Engine

To temporarily work around this behavior:
 * For forms, create a form, and then change the RecordSource property of the form from dbo_ to just where is the name of your table.
 * For Datasheet views of a table, create a form, and then set the DefaultView property of the form to Datasheet. Then use the form instead of using the table directly.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior
 Create a new project to the Microsoft Data Engine (MSDE) or Microsoft SQL Server 7.0 Northwind sample database. Create a new user who is not a member of the db_owner group. To do so, follow these steps:  On the Tools menu, point to Security, and then click Database Security. The SQL Server Security dialog box appears. On the Server Logins tab, click Add. In the SQL Server Login Properties dialog box, type a new user name.</li> Click SQL Server authentication, leave the password blank, and then click Northwind in the default database drop-down list.</li> Click the Database Access tab, and then click to select the Permit check box to assign permissions to the Northwind sample database. Leave the default Public role selected.</li> Click OK twice to close the SQL Server security dialog box.</li></ol> </li> On the File menu, click Connection.</li> Verify that Use a specific user name and password is selected, and then type the user name that you just created. Click OK to close the dialog box. This resets the connection of the ADP to the new user.

NOTE: When the new user is active, the table-name listing includes (dbo) after each table name.</li> In the Database window, click Forms under Object, and then use the Form Wizard to create a new form. Open the form, and then apply a filter by selection or a filter by form. Note that you receive the error mentioned in the &quot;Symptoms&quot; section of this article.</li> To resolve the error, edit the RecordSource property of the form to remove the dbo_ from the beginning of the table name.</li> Reapply the filter and note that the error no longer occurs.</li></ol>

Additional query words: pra

Keywords: kberrmsg kbbug kbnofix kbclientserver KB264254

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.