If you're asking what I think you're asking (SQL Server Query Analyzer or Enterprise Manager SQL views, etc.), you'll have to design your own utility form to do this. Access has no SQL View display format like those other products.
I'm not sure if this is what you're looking for, but in VBA you can open the query in design mode, then use sendkeys to switch to sql view mode. There may be a better way (I don't particularly like send keys) but I'm not aware of it. The code looks like:
function OpenQuerySQL()
DoCmd.OpenQuery "query1", acViewDesign
SendKeys "%vq"
end function
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.