PRB: Mixing "And" and "Or" Criteria in the Same Filter Returns a 3001 Error Message (280811)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q280811 SYMPTOMS
Mixing And and Or criteria in the same filter returns the following error message:
Runtime Error '3001' Arguments are of the wrong type, are out of acceptable range or are in conflict with one another.
CAUSE
Although there is no precedence when evaluating criteria, when you use And and Or together in the Filter property, the or criteria must be the last comparison made.
RESOLUTION
To resolve the error message, use criteria that allows the Or to be the top comparison.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDatabase kbDSupport kbprb KB280811 kbAudDeveloper |
---|
|