I need to write a query that returns the number of records that match the criteria. I do not need to see the reults just the number of records matching the criteria. Is this possible? Any help would be really appreciated.
Good Luck, Robert
•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•
Professional, affordable, Access database solutions and assistance
Use the domain aggregate function DCount(). In your text box add the following control source:
=DCount("MyID", "MyTable", "Complaint = True"
and to the other box's control source:
=DCount("MyID", "MyTable", "Close = True"
Of course you will have to substitute the appropriate values, but this should give you the basic idea of what to do. Robert
•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•°•
Professional, affordable, Access database solutions and assistance
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.