I have a generic module for creating Excel reports.
This code works, but only once.....
Set rstBron = dbOFA.OpenRecordset("SELECT Year([Date]) AS Year, Cint(Format([Date],'mm')) AS Month, Amount FROM Invoices"
apXL.Visible = True
Set xlWsh = xlWbk.Worksheets(1)
xlWsh.Name = "Data"...