+ Reply to Thread
Results 1 to 3 of 3

Automate: 1) wipe out table and 2) copy data from another table to it

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Automate: 1) wipe out table and 2) copy data from another table to it

    Using VBA/DAO for Excel 2010, originally I was pulling data from a table in Access that was linked/sync'd with a SharePoint list. The query was somewhat slow, so I created a regular/non-linked Access table and every day I manually append the data from the SharePoint linked table to this other table (I delete all of the data from this other table first) and the query runs much faster. This process isn't too bad as it only takes a few minutes at night, but is there a better way to do this (besides changing the front-end/back-end altogether)?

    Is there anyway to automate this job? Maybe using VBA for Access or something? Or is there a way to keep the SharePoint-linked table and the other table (I guess you'd call it a regular table? I dunno) sync'd up automatically? Or at least sync'd up every few minutes or hours?

    Thanks!

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

    Re: Automate: 1) wipe out table and 2) copy data from another table to it

    You could delete the table using VBA. Use the DoCmd.deleteobject

    Look here: http://msdn.microsoft.com/en-us/libr...ffice.12).aspx

    Then use the DoCmd.transferSharePointList

    Look here: http://msdn.microsoft.com/en-us/libr...ffice.12).aspx

    /alan
    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

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    NYC
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Automate: 1) wipe out table and 2) copy data from another table to it

    Thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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