I create a complex query in Microsoft Query within Excel and get the message "SQL Query can’t be represented graphically"
I think this means that I can't add a parameter criteria to the query (I need the user to select the year). Is there any way around this?
That message just means it can't take you back to the wizard. If you click OK to that message, it will open MS Query in another window. From there it looks very similar to an Access query.
You can enter your criteria using [Date] instead of an actual date, and it will prompt the user to enter the date.
When you get back into Excel (close the query screen), you can use Data > Get External Data > Parameters to specify a cell in the Excel sheet for the date parameter.
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.