Try putting your space before the start of the next line as opposed to the end of the line above. Like:
"SELECT Sum(IIf([Type]= 'RESI', [Amt], 0)) AS Ind," & _
" Sum(IIf([Type]= 'RESM', [Amt], 0)) AS Med," & _
" Sum(IIf([Type]= 'RESE', [Amt], 0)) AS Exp," & _
" [Date]" & _
" FROM transaction"...