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.