@Leo_Polla_Psemata, for converting SQL to VBA (or TSQL), here's another useful link:
https://accessusergroups.org/sql-converter/
As for breaking long lines, in the SQL I like to replace comma with line-break, Space(3), comma (since I like to put commas at the beginning of the next line so it's...