+ Reply to Thread
Results 1 to 3 of 3

Append new data from an Access Query to a table

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Append new data from an Access Query to a table

    I have been searching for a few hours now with no luck so helpfully someone can help.

    I have a Query that has the following headings:
    Index ,Fund ,Fund Code ,Orgn ,Unit Code ,Acct ,GL_Type,TRANS DATE ,TYPE ,DOCUMENT ,DESCRIPTION ,DOC REF ,FLD ,AMOUNT ,Division , FY , SOURCE , Month, Period,

    I have a blank table that has the following headings:
    INDEX ,FUND ,Fund Code ,ORGN ,Unit Code ,Acct ,GL_Type ,TRANS DATE ,TYPE ,DOCUMENT ,DESCRIPTION ,DOC REF ,FLD ,AMOUNT ,DIVISION ,FY ,SOURCE ,Month ,Period ,RECON

    The only fields in my table that will be unique to that table are the last field RECON

    I pull a downloaded data set each week and the data only continues to grow meaning the records that I pulled last week would be in the download I pulled this week plus some new records. Each week I save the Excel spreadsheet in the same location overwriting the existing spreadsheet. I then have that spreadsheet pull into Access via a Linked Table I then have a simple query that just grabs the specific fields mentioned above. I now want to take that Query and append that the data that is in that query into my Master Table. I now use that Master table to reconcile against another data set and when I find an expense that exists in my other data set I type Reconciled in the RECON field in my table and I do this until every record has been reconciled. Next week I will do the same process and save the spreadsheet and then I want to run the append query so that it only pulls new records into my table. I know how to create an append query by clicking Query Design and selecting the table/query I want to use and then selecting The Append Query Type at the top but not sure what to do after that I am still pretty new at the SQL side but I am willing to go that route with help.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Append new data from an Access Query to a table

    Once you create the append query,you run it.
    After the import, & reconcile , run the append query in the macro.

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: Append new data from an Access Query to a table

    okay you lost me. I get that I run the append query in the beginning and that will get the data to the table but when you say "run the append query in the macro" that's the piece that's not clear. What macro? When I run the append query currently it just appends all the data into the table meaning when I run it a second time it repeats that step. My issue is I can't have duplicate records come into the table and none of the fields by themselves are unique so when I run that append query I need it to look at each record and if it is a duplicate I don't want to be brought into my table.

+ 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. Using Excel VBA to append data to Ms.Access Table
    By jadhavabhay in forum Excel General
    Replies: 1
    Last Post: 12-14-2015, 11:01 PM
  2. New column in Excel append to Access table
    By myles8908 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2015, 11:32 AM
  3. access append query error - PC hang
    By ewong in forum Access Tables & Databases
    Replies: 1
    Last Post: 09-17-2012, 01:54 PM
  4. Can I use MS Query in Excel like an Append Query in Access
    By Sam Wardill in forum Excel General
    Replies: 0
    Last Post: 04-11-2006, 09:45 AM
  5. How do I Append excel data to a Access database table in a excel macro?
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:20 PM
  6. [SOLVED] How do I Append excel data to a Access database table in a excel macro?
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM

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