yea but the filter is for the where part of the SQL statement
The part that i need to worry about form the sql statement is the HAVING part
This is somewhat off-subject, but you can easily change a HAVING
clause into a WHERE.
Assuming you are actually using a HAVING clause (aggregated values) -
Access likes to place WHERE criteria in HAVING even when it is not
necessary.
Old query:
Select myID
from tblSomething
group by myID
having count(*) > 4
New queries. Save the first one as a view.
qryMyQuery:
Select myID, count(*) as myCount
from tblSomething
group by myID.
select myID
from qryMyQuery
where myCount > 4.
Ta-Da. Changed HAVING to WHERE by saving as a view and then selecting
from it.
BTW, I'm still not sure where your limiting/filtering data is coming
from.
-Kris