I'm attempting to export some table queries to excel using the code I have posted below as a module.
I am getting an error saying it cannot find my query.
I have used this code to do the above on 2 queries within the same table and it works fine. I don't understand why it would not work for...