I have a lot of SQL at work in MS-Access, and I need to formatted so that it’s human readable. The issue is when I change between views I end up with the SQL being condensed down into something that I can’t read.
How do I force SQL to retain its ‘shape’ when I go to other views?
I found a hack, here. The secret lies in enclosing your query inside a dummy query. Like so:
I’ve indicated where and how you wrap the code. The only issue I can see is if you wanted to edit the code in design view, then it doesn’t seem to pick the enclosed code up at all.