ACC2002: OpenForm and OpenReport WHERE Clauses Are Ignored When You Use Server Filter (296049)
The information in this article applies to:
This article was previously published under Q296049 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS
When you use a WHERE clause with the OpenForm and OpenReport methods and actions, the WHERE clause will be ignored if a server filter has been set on the form or report.
CAUSE
If a server filter exists, it will be used to query SQL Server instead of the WHERE clause in the OpenForm or OpenReport command.
RESOLUTION
Remove the ServerFilter property setting in Design view, and then save the form or the report. When the form or report is opened, it will reflect the records that are specified in the WHERE clause in the OpenForm or OpenReport methods or actions.
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kbprb KB296049 |
---|
|