Not sure. Works for me, but you didn't post the whole thing so maybe there's an issue with the beginning part? I created qryYrly and this works
Code:
SELECT * FROM msysObjects
WHERE [Type] In (5) AND [Flags] In (0,16) AND [Name] Like '*Yrly*'
ORDER BY [Type], [Name]
I get what you're saying about your db. I guess about all you can do is soldier on with what you've got and maybe try to step up your game with the next one. I think that if you were to start over (but keep using what you have) and address one concept or portion at a time and ask for a review before taking the next step, you would be able to slowly convert to something more efficient. If that takes a year, so what, as long as you've got something that's working in the meantime?
Wish everyone was as appreciative as you.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.