Results 1 to 4 of 4
  1. #1
    Abarxax is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    3

    1 Month Archiving Query

    Hi Guys,

    I was wondering if someone can help me? I am needing to create a query that will archive a record after the call has been set to closed for a month (its a basic help desk system) I did find this: http://office.microsoft.com/en-gb/ac...#_Toc254609926 on archiving so I have created a table but basically I need the query to check if it has been closed for more than a month and if so move it to the archive table. I am sure there is an easy way to do this but I don't have the syntax knowledge in access to do it.

    Thanks in advance,



    Abarxax

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    Your criteria would look like:

    < Date() -30

    or you could use the DateAdd() function to get an actual month.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Abarxax is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    Your criteria would look like:

    < Date() -30

    or you could use the DateAdd() function to get an actual month.
    thanks Also would you by any chance know how I would make that query remove the record from that table and move it to my archive table because at the moment the query is just filtering.

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    You would run 2 queries, first an Append query then a Delete query, both with that criteria. With your query in design view you'll see icons to switch the type on the ribbon.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Append Query for Archiving
    By Canadiangal in forum Queries
    Replies: 2
    Last Post: 06-24-2013, 05:40 PM
  2. Assistance designing an archiving query
    By gm_lowery in forum Access
    Replies: 1
    Last Post: 06-14-2012, 01:57 PM
  3. Archiving Records
    By robsworld78 in forum Forms
    Replies: 5
    Last Post: 06-03-2011, 05:00 AM
  4. Archiving records
    By NOTLguy in forum Access
    Replies: 3
    Last Post: 11-21-2010, 03:15 PM
  5. Archiving old records
    By dean in forum Access
    Replies: 7
    Last Post: 09-14-2009, 02:54 AM

Tags for this Thread

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