
Originally Posted by
Robeen
When I have needed to export the data from queries along with Counts / Totals / Averages etc, I have created reports and put all the Counts, Totals Averages at the bottom of the reports & then exported the Reports. That way all the totals go out along with the data.
Thanks Robeen.
I am trying that now but how do I add the total row to the report and how do I export?
I have this code already for exporting queries.
Code:
Call DoCmd.TransferSpreadsheet(TransferType:=acExport, _
TableName:="qryActivity", _
FileName:="C:\Exports\qryExportMetrics.XLS")
Call DoCmd.TransferSpreadsheet(TransferType:=acExport, _
TableName:="qryCalled911", _
FileName:="C:\Exports\qryExportMetrics.XLS")
Call DoCmd.TransferSpreadsheet(TransferType:=acExport, _
TableName:="qryCalled911Activity", _
FileName:="C:\Exports\qryExportMetrics.XLS")
Do I just change the TABLENAME for exporting report ?