I want to export some data in one recordset in Access to Excel.
I know the DoCmd.TransferSpreadsheet command but it works only with stored queries, and in my case it's a runtime-filtered recordset.
I've tried some codes to do what I want. I can get the data exported but I cannot get the column name from the recordset.
Any suggestion on the commands or how to get those column names from recordset?