Thanks for your response but it seems like you just manually entered the name of the query. Thats not what I want. I want it automatically entered. I have about 20 queries that I run sequentially, each one adding its own records to a single common target table. When I look at that table I want to see which records came from which query. I don't want to start manually entering the names into each query, especially since if the name changes, I will need to remember to change the text inside.
What I am looking for is some function that will return the name of the current query.