Results 1 to 3 of 3
  1. #1
    MiserableLawStdnt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2

    Append Query question

    Hello,

    I have a large database with financial data dating back to 2008. The problem is when I update my queries, it takes like 30-minutes. I was told I can drastically cut this time if I didn't update 2008-2010 data, as that will not change. The way to do this is some how related to an append query. My guess is I would append a query that pulls 2011 data, onto the the financial data table. And then only update the 2011 query.



    However I am not sure about the specifics. I was wondering if someone could sort of help me out and give me a step by step. Thank you.

  2. #2
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    In the query you're using to calculate your updated results, find the date field and insert a suitable criteria.

    For example, if the field has raw dates then you could use

    Criteria: Between #1/1/2011# and #12/31/2011#

    Or, you could instead add a field that calculates the year based on the date field value:
    MyYearField: Datepart("yyyy",[DatefieldName])
    And add the criteria:
    Criteria: 2011

    Either situation will limit the query to working only with those records in 2011.

    However, you could use similar logic to further reduce the amount of work that the query is doing depending on the real world situation.

    For example, if your updated results only need to be calculated for the past 30 days, then you could calculate how mnay days have passed between the transaction and the current date, and then use a criterion parameter that limits the query to only those transactions with an elapsed time of less than or equal to 30 days.

    DaysElapsedField: Datediff("d",[DateFieldName],Date())
    Criterion: <=30

    If you're unfamiliar with adding criteria to queries, try doing a google search on parameter queries and you should find some examples.

  3. #3
    MiserableLawStdnt is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2
    Alright, let me explain in a bit more detail.

    I have an Excel table which is pulling data from a 3rd party accounting software (FACTOR). This excel spreadsheet is then linked to an Access table. So there is in fact no query that is being used to update the Access table (2008-2011). as far as I am aware I can not add any criteria to the Access table to only update the 2011 info when I open the linked table. Right?

    So my idea is, to not update the Access table which is linked to the Excel spreadsheet, but rather only update the Appended Query in which I will have the criteria for only 2011+ data. Does that make sense?

    If there is a way I can enter some criteria to only update the 2011 data in he linked table, please let me know. Thanks.

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

Similar Threads

  1. Parent/Child Append Question
    By davidson12 in forum Access
    Replies: 6
    Last Post: 01-15-2015, 08:15 PM
  2. Append Query Question
    By chewbears in forum Access
    Replies: 9
    Last Post: 11-18-2011, 03:06 PM
  3. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  4. Append Query Question
    By JackA in forum Queries
    Replies: 5
    Last Post: 08-02-2011, 03:59 AM
  5. Replies: 7
    Last Post: 07-21-2011, 01:01 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