Results 1 to 4 of 4
  1. #1
    johnseito is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    419

    Import excel file / data into access database.

    How to use VBA to import excel file / worksheet into access database as a new table, not an established table already there. Could someone provide an example code.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    docmd.transferspreadsheet....

    but why would you keep importing new tables?
    all your tables should already be established.

  3. #3
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Alternative is to link the excel range/table to Access.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    John,

    I agree with ranman are you importing new tables repeatedly?
    Perhaps you could give us some info re the need and the business process involved.
    In many situations, you establish the table design in Access, then import the data from Excel (or other).

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

Similar Threads

  1. Import data to excel from an access database on the network
    By BobW2961 in forum Import/Export Data
    Replies: 1
    Last Post: 08-16-2018, 09:26 AM
  2. Replies: 2
    Last Post: 02-28-2017, 01:34 AM
  3. Import data from excel to Access Database
    By n2d2cool in forum Access
    Replies: 1
    Last Post: 12-13-2016, 05:02 AM
  4. Auto Import Excel Data into a Running Access Database
    By novice1979 in forum Programming
    Replies: 5
    Last Post: 12-02-2014, 08:19 AM
  5. Import access query data into excel file, using excel vba
    By exceljockey in forum Import/Export Data
    Replies: 3
    Last Post: 11-15-2013, 02:36 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