Another way to do it is to use an on error goto block. You proceed as though an error would not occur, but if the query does not exist an exception will be raised and you will "catch" it. Test to be sure that the error-code is what you expected it to be ("query not found"), and if not, process it as a real error.
This is an efficient technique when you "expect" that the query will exist most of the time. Given that Access is going to search for the query anyway, it treats the exceptional case ("huh? it's not here?") as an exception.
Now, it's really up to you how you choose to do it.