exporting spreadsheet

O

okschlaps

Hi
I'm trying a very simple (I thought) export to excel. Here's my code:
DoCmd.TransferSpreadsheet acExport, , "TestTable", "D:\Roxanne\Test.xls", True
It runs, but there's no data in the spreadsheet. What am I missing?
Thanks for your help.
 
O

OfficeDev18 via AccessMonster.com

Are you checking all the sheets in the new workbook? When exporting, Access
makes a new worksheet, in this case called "TestTable" and that's where the
data resides.

Sam
 
O

okschlaps

Well, I'll be! There they are. Thank you, Sam!

OfficeDev18 via AccessMonster.com said:
Are you checking all the sheets in the new workbook? When exporting, Access
makes a new worksheet, in this case called "TestTable" and that's where the
data resides.

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top