Results 1 to 2 of 2
  1. #1
    limez0r is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    2

    Angry Excel import error

    I am desparate for assistance! Cannot figure out what it going on.

    Ill trying to import an excel spreadsheet thusly



    Code:
    DoCmd.TransferDatabase acImport, acSpreadsheetTypeExcel12, table1, acTable, "C:\test.xls"
    Plain and simple, done it hundreds of times years ago, however I am getting this error:

    Run-time error '2507': The 9 type isn't an installed database type or doesn't support the operation you chose.
    How can this be? I have Excel 2007 installed? I have googled everything I can think of and found no other example of this error in relation to Excel... I have switched on all the main reference librarys I can think of, and when I search the object library for "acSpreadsheetTypeExcel12" it shows up, however nothing comes up as a list option for database type, the way I remember it used to. (eg; the way vb pops up a list of selectable constants) It does pop up for transfer type however.

    I am at a loss. Without this function I cannot continue!

  2. #2
    limez0r is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    2
    Should be DoCmd.TransferSpreadsheet my mistake.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import from Excel
    By Jonathan58 in forum Import/Export Data
    Replies: 18
    Last Post: 07-19-2013, 09:52 AM
  2. Excel import using VBA
    By catguy in forum Programming
    Replies: 6
    Last Post: 08-25-2010, 09:58 AM
  3. Excel Import
    By jesleon in forum Import/Export Data
    Replies: 4
    Last Post: 08-24-2010, 07:32 AM
  4. Import Excel with SQL - again
    By tpcervelo in forum Queries
    Replies: 1
    Last Post: 08-06-2010, 08:13 PM
  5. VBA to open excel, import on close of excel
    By bdaniel in forum Programming
    Replies: 0
    Last Post: 03-20-2010, 02:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums