Well, you have two options. Go to your saved query and open the SQL view. Copy the SQL and then paste it into the appropriate box of the macro. Or you can use the OpenQuery action and just click on the dropdown arrow and choose the query you want to open.
RunSQL doesn't run saved queries. It runs SQL code. Use the OpenQuery action to run a saved query from a macro. Terry L. Broadbent FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.