+ Reply to Thread
Results 1 to 2 of 2

Import data to my access table with VBA

  1. #1
    Forum Contributor
    Join Date
    11-01-2016
    Location
    Prague
    MS-Off Ver
    2013
    Posts
    121

    Import data to my access table with VBA

    Hello Everyone,

    I am new in Access and VBA

    I have a table in MS Access : "Polish_Terminations_Tracker_2018"

    I want to import data to this table with VBA. Import data will be another excel file which I will make user browse in his desktop. The import data has exact same columns. I want to add the content of that import data, to the end of my table.

    I have below code but its not working. Any idea ?

    Thanks !

    Please Login or Register  to view this content.
    Last edited by orhanceliloglu; 06-14-2018 at 12:04 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Import data to my access table with VBA

    In the above code, you are deleting all the data in your table first. If this is what you want, then instead of importing your excel file after the deletion, then link your file to Access and the linked file becomes a linked table that you can then perform all of the necessary Access functionality. Additionally, every time you update or change the excel file, it is immediately linked/synced to the table as they are one in the same.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Use an Excel Macro in Access VBA - Import text file in Access Table
    By joogibabu in forum Access Tables & Databases
    Replies: 3
    Last Post: 10-08-2014, 10:04 AM
  2. Import several access table data to excel 2007
    By ajv015 in forum Excel General
    Replies: 1
    Last Post: 01-03-2014, 09:51 AM
  3. How can I programmatically import Excel data into an Access table
    By Castillb in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2013, 08:09 PM
  4. How can I programmatically import Excel data into an Access table
    By Castillb in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2013, 02:19 PM
  5. [SOLVED] Import Excel Data to Find Match in Access Table
    By CRW in forum Access Tables & Databases
    Replies: 3
    Last Post: 09-15-2012, 08:11 AM
  6. import data from access table to excel pivot table - Enable Auto Refresh
    By okl in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-01-2010, 09:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1