Results 1 to 2 of 2
  1. #1
    Drew101 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    May 2017
    Posts
    22

    Button VBA to import a file

    Trying to figure out vba to put in a button that would import my file from the server into a table in access //HOMEONE\MFOLDER\UPLOAD.XLS


    and then
    A vba button that saves the query per the server address by the name completeupload.xls

    //HOMEONE\MFOLDER\COMPLETEUPLOAD.XLS

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    either:
    attach the file as a linked table,
    then you save each new excel file and overwrite the upload.xls
    then run an append query to add the xl data to the internal table.

    steps:
    1, save upload.xls
    2. run append query (in a macro)

    OR

    the button would run a macro,
    the macro runs TRANSFERSPREADSHEET....
    this command tells where to add the file into what table.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-28-2017, 01:34 AM
  2. File Selector And Import Selected File
    By jo15765 in forum Programming
    Replies: 7
    Last Post: 12-15-2016, 12:28 PM
  3. Replies: 7
    Last Post: 06-30-2014, 12:11 AM
  4. Import Excel file based on a date and time in file name
    By nhylan in forum Import/Export Data
    Replies: 4
    Last Post: 04-16-2013, 03:26 PM
  5. create a button for import excel file
    By tggsun in forum Forms
    Replies: 3
    Last Post: 01-17-2012, 08:40 AM

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