TransferSpreadsheet Excel 2007 into Access 2003

  • Follow


How can I TransferSpreadsheet Excel 2007 into Access 2003?

This does not work:

DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "tblSomeData", "C:
\DataFolder\SomeData.xlsx", True, "Sheet1$"

If I save as an xls it will work:

DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "tblSomeData", "C:
\DataFolder\SomeData.xls", True, "Sheet1$"

Do I need to do that?  Is there another way?
0
Reply Tom 1/26/2010 6:26:15 PM

Since Access 2003 came out long before Excel 2007 was designed, it seems 
logical that it doesn't know anything about the Excel 2007 file format. The 
Access developer team is good, but it would have required a lot of 
prescience to be able to predict future file formats!

Saving in a legacy file format makes sense.

-- 
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

"Tom Benson" <tombensonldi@gmail.com> wrote in message 
news:b30e8329-8f86-436f-83d5-7dca021d8e52@a12g2000yqj.googlegroups.com...
> How can I TransferSpreadsheet Excel 2007 into Access 2003?
>
> This does not work:
>
> DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "tblSomeData", "C:
> \DataFolder\SomeData.xlsx", True, "Sheet1$"
>
> If I save as an xls it will work:
>
> DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "tblSomeData", "C:
> \DataFolder\SomeData.xls", True, "Sheet1$"
>
> Do I need to do that?  Is there another way? 


-1
Reply Douglas 1/26/2010 6:31:19 PM


True.  Good enough!  Thanks.
0
Reply Tom 1/26/2010 6:56:20 PM

2 Replies
787 Views

(page loaded in 0.8 seconds)

Similiar Articles:
















7/24/2012 11:22:20 AM


Reply: