Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2010 VBA Export Current Filtered Recordset to Excel

Status
Not open for further replies.

tomdudas

Programmer
Jul 23, 2010
1
CA

I want to take the current, filtered recordset from my Access 2010 form and export it to Excel for a Word mail-merge.

but the TransferSpreadsheet OR docmd.output commands required a fixed table or query???


DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _
"tablename", "e:\Access2010\tmpCCdeclined.xls", True
 


Hi,

Why, "export it to Excel for a Word mail-merge?"

Why not use the query you are using in MS Access as the data source for your mail merge?


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top