SELECT IIf(Month([InvoiceDate])>11,Year([InvoiceDate])+1,Year([InvoiceDate])) AS FY, "Jobs/FRAs" AS Type, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=1,CCur(Nz([InvoiceAmount],0)),0)) AS Month1, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=2,CCur(Nz([InvoiceAmount],0)),0)) AS Month2, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=3,CCur(Nz([InvoiceAmount],0)),0)) AS Month3, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=4,CCur(Nz([InvoiceAmount],0)),0)) AS Month4, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=5,CCur(Nz([InvoiceAmount],0)),0)) AS Month5, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=6,CCur(Nz([InvoiceAmount],0)),0)) AS Month6, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=7,CCur(Nz([InvoiceAmount],0)),0)) AS Month7, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=8,CCur(Nz([InvoiceAmount],0)),0)) AS Month8, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=9,CCur(Nz([InvoiceAmount],0)),0)) AS Month9, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=10,CCur(Nz([InvoiceAmount],0)),0)) AS Month10, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=11,CCur(Nz([InvoiceAmount],0)),0)) AS Month11, Sum(IIf(IIf(Month([InvoiceDate])=12,1,Month([InvoiceDate])+1)=12,CCur(Nz([InvoiceAmount],0)),0)) AS Month12, [Month1]+[Month2]+[Month3]+[Month4]+[Month5]+[Month6]+[Month7]+[Month8]+[Month9]+[Month10]+[Month11]+[Month12] AS Total
FROM tblCustomerInvoices
WHERE (((tblCustomerInvoices.InvoiceNumber) Is Not Null) AND ((tblCustomerInvoices.OrderNumber) Like "J*" Or (tblCustomerInvoices.OrderNumber) Like "FRA*") AND ((tblCustomerInvoices.Proforma)=False))
GROUP BY IIf(Month([InvoiceDate])>11,Year([InvoiceDate])+1,Year([InvoiceDate]))
HAVING (((IIf(Month([InvoiceDate])>11,Year([InvoiceDate])+1,Year([InvoiceDate])))>2014));