Results 1 to 2 of 2
  1. #1
    onkey is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    1

    Wink Excel import

    Hi...
    i new in MS Access 2007.

    i hv one project using this application(access)




    how to upload data from excel workbook into access?
    i have a few workbook to upload into access..
    my boss want me create button for upload,so went i click that button i can choose which workbook i want to upload..
    all the excel i put in sharefolder(company).



  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    A number of ways to accomplish. The simplest is for the button to open the import wizard.

    DoCmd.RunCommand acCmdImportAttachExcel

    Beyond that, starts getting complicated.

    Can open Windows file manager dialog to navigate to file and grab file name then use it with TransferSpreadsheet method to execute import.
    http://support.microsoft.com/kb/824272
    http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  2. Replies: 2
    Last Post: 02-14-2012, 04:40 PM
  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