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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting for export to Excel - only selected records

Status
Not open for further replies.

actdjohng

MIS
Apr 26, 2002
10
0
0
US
We are trying to export only selected records to Excel and are having a hard time in doing so, the export is exporting the whole file which fills up Excel limit. Any ideas on how to do this?

 
Hi actdjohng

I assume you are trying to export from a form - and this exports all records (no way to change this as far as i know).

However, using the transferspread method - you could use a query to do that for you.

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryYourQuery", "C:\YourFileName.xls"

Code or Macro - your choice.

Stew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top