J
Jeff C
Is there a limit to how many and/or criteria you can have in a query?
Is there a limit to how many and/or criteria you can have in a query?
Is there a limit to how many and/or criteria you can have in a query?
John Vinson said:Yes - actually a couple of them. I believe that you can have up to 32
clauses; and you may run into "Query Too Complex" if the compiled
query is too large.
Take a look at the In() operator - rather than
ID = 31 OR ID = 38 OR ID = 84 OR ID = 91
you can say
ID IN(31, 38, 84, 91)
You may also want to (for efficiency as well as to avoid these limits)
consider creating a table of criteria and joining it to the table that
you want to search.
John W. Vinson[MVP]
Is there a limit to how many and/or criteria you can have in a query?