I am current use the following codes to export a query to excel file:
DoCmd.TransferSpreadsheet acExport,acSpreadsheetTypeExcel97, “qry_Master”, “c:Master.xls”, True
There’s a field in qry_Master call “status.’ Now I want to have a subtotal of “Yes” and “No” of status field when I export query to excel.
What needs to be modified in this code to achieve what I’m after?
Thanks,