dbTalk Databases Forums  

A2K Error 3011 on TransferSpreadsheet method

comp.databases.ms-access comp.databases.ms-access


Discuss A2K Error 3011 on TransferSpreadsheet method in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
buckskin
 
Posts: n/a

Default A2K Error 3011 on TransferSpreadsheet method - 10-21-2010 , 06:40 PM






Hello all,

I'm jut trying to import a spreadsheet into a table in Access 2000.

The spreadsheet is called cc-ledgcodebalances.xls with no field names.

My code is

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel3, "tmptmp",
VFileName, 0


This seemed to work once but since then I now get this;


The Microsoft Jet database engine could not find the object
''cc-ledgcodebalances$''. Make sure the object exists and that you spell
its name and the path name correctly. 3011


Google searches aren't really turning up much that is useful. I'm trying to
import the whole thing and I don't think this is to do with named ranges.

Bit stumped by this, any help?

Reply With Quote
  #2  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: A2K Error 3011 on TransferSpreadsheet method - 10-22-2010 , 06:59 PM






"buckskin" <buckskin (AT) mailinator (DOT) com> wrote in
news:8ic1buFj70U1 (AT) mid (DOT) individual.net:

Quote:
The spreadsheet is called cc-ledgcodebalances.xls with no field
names.

My code is

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel3,
"tmptmp", VFileName, 0

This seemed to work once but since then I now get this;

The Microsoft Jet database engine could not find the object
''cc-ledgcodebalances$''. Make sure the object exists and that
you spell its name and the path name correctly. 3011

Google searches aren't really turning up much that is useful. I'm
trying to import the whole thing and I don't think this is to do
with named ranges.
Most likely the spreadsheet or table structure no longer matches
that of the saved import spec. I've gotten the same message in that
scenario.

Try it with the import wizard and it should tell you what's wrong
with the saved import spec when you load it.

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #3  
Old   
buckskin
 
Posts: n/a

Default Re: A2K Error 3011 on TransferSpreadsheet method - 10-26-2010 , 09:12 AM



"David-W-Fenton" <NoEmail (AT) SeeSignature (DOT) invalid> wrote

Quote:
"buckskin" <buckskin (AT) mailinator (DOT) com> wrote in
news:8ic1buFj70U1 (AT) mid (DOT) individual.net:

The spreadsheet is called cc-ledgcodebalances.xls with no field
names.

My code is

DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel3,
"tmptmp", VFileName, 0

This seemed to work once but since then I now get this;

The Microsoft Jet database engine could not find the object
''cc-ledgcodebalances$''. Make sure the object exists and that
you spell its name and the path name correctly. 3011

Google searches aren't really turning up much that is useful. I'm
trying to import the whole thing and I don't think this is to do
with named ranges.

Most likely the spreadsheet or table structure no longer matches
that of the saved import spec. I've gotten the same message in that
scenario.

Try it with the import wizard and it should tell you what's wrong
with the saved import spec when you load it.

Many thanks for that David, seems to be working now as I'm having to import
a different spreadsheet. But I'll bear that tip in mind.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.