I just made this AutoHotKey script, which will lead you directly to the SQL Editor view in Access.
Access 2016:
f8:: SetKeyDelay 100 Send {Alt}cqd!c{Alt}{Left 4}{Down}{Enter}{Alt}{Right 4}{Alt}^{F10} Return
Access 2010:
f8:: SetKeyDelay 100 Send {Alt}cqd!c{Alt}{Left 4}{Down}{Enter 2}{Alt}{Right 4}{Alt}^{F10} Return
Instruction:
- Download and install AutoHotKey .
- Create a text file called
whatever.ahk and copy this script into it. Save. - Double-click the file. This will not execute the script, but will load AHK into memory.
- Open the Access database.
- Press the F8 key and the script will launch and land in the SQL editor.
Note # 1: you donโt need to double-click the file each time - after starting it, it will continue to work until you close it. You can see the icon on the taskbar. All you have to do is press F8 every time you want to open the SQL editor.
Note # 2: You can replace F8 with any key / combination of your choice, just be careful not to run into existing keyboard shortcuts. F8 doesn't seem to do anything in Access (initially), so it works great. Iโm so sick of clicking the 10X mouse over all accesses every time I want to open the SQL editor โ you'll love it!
source share