I have an SQL string that generates an ADO recordset, and I need to export the contents of that recordset to an Excel spread sheet. I've messed around with using the DoCmd.TransferSpreadsheet function:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, rsRecordset, filename, True
This has brought me no success; I'm sure I'm doing it wrong. What is the correct way to do this, if possible? This is Access/Excel 2000, if that makes a difference.
Thanks in advance for any help.
cope22
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, rsRecordset, filename, True
This has brought me no success; I'm sure I'm doing it wrong. What is the correct way to do this, if possible? This is Access/Excel 2000, if that makes a difference.
Thanks in advance for any help.
cope22