Generally, no; it depends on what qryName is and what you might be
attempting to do. Since you don't say what you're trying to do (at
least not in this thread) it's more than a mite difficult to suggest a
better way to do it!
If qryName is a Totals query doing a count, you can save one layer of
logic by doing the count in an equivalent DCount() function call; or,
you can do counts directly in the control source of textboxes on a
form or report footer.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.