Hi all,
I have a query which provides a count of the rows meeting my criteria. I want to call this query from VBA and capture the count. I know that I can create a recordset using this query and check the recordcount of the recordset. But...
What I'd like to know is there a quick way to get the query's result directly into a variable without creating a recordset since I'm not interested in the recordset itself? If so, would you provide the syntax of the call to the query in VBA?
Thanks so much!
M
I have a query which provides a count of the rows meeting my criteria. I want to call this query from VBA and capture the count. I know that I can create a recordset using this query and check the recordcount of the recordset. But...
What I'd like to know is there a quick way to get the query's result directly into a variable without creating a recordset since I'm not interested in the recordset itself? If so, would you provide the syntax of the call to the query in VBA?
Thanks so much!
M