Results 1 to 2 of 2
  1. #1
    krismcmillan is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2014
    Posts
    1

    Need help with an Macro


    Hi

    I need some help with uploading a excel spreadsheet into Access 2010

    1.Need to add an Browse button, so that the user can find an excel spreadsheet
    2. I want to add an upload button, so that the user can upload the spreadsheet to a specific table
    3.It also needs to overwrite the original table, but the structure needs to stay.

    Thanks in advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I would not use macro, only VBA code.

    1. try FileDialog - common topic

    2. maybe TransferSpreadsheet action will serve - another common topic

    3. delete records before import - sql action
    CurrentDb.Execute "DELETE FROM tablename"
    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. Command Button to Run Macro, can't find macro
    By Ace2014 in forum Modules
    Replies: 22
    Last Post: 06-11-2014, 11:42 AM
  2. Help!! with my macro
    By sandeebee123 in forum Macros
    Replies: 3
    Last Post: 07-30-2013, 10:44 AM
  3. Replies: 2
    Last Post: 06-30-2013, 09:59 AM
  4. Replies: 2
    Last Post: 05-05-2012, 02:34 AM
  5. Replies: 0
    Last Post: 01-12-2011, 12:43 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