Results 1 to 4 of 4
  1. #1
    maxx102 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    14

    Auto Delete record after 3 years?


    Hello,

    I have a question. I am updating our company's parking database which includes all of the parking tickets and fines we have issued. We currently have a function button that changes the status from say "parking in handicap space" to "VOID - ticket 1 year old - VOID".

    What I would like to do is something very simular to the steps I mentioned above except instead of just changing a field status, it deletes the whole record after 3 years of the parking ticket issue date. (1095 days)

    Is there a way for me to program the function button to do this and if so, how do I do it?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about Archiving the records? http://allenbrowne.com/ser-37.html

  3. #3
    maxx102 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    14
    We really don't need or want to store the records for more than 3 years. I can do this by hand by selecting the whole line of data the covers all of the various fields, but if there is a way I can program a button to do it for me, that would be a lot easier and quicker.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would use the Query builder and see if you can build a query that selects just the records you want. After you get just the records you want then change it to a Delete query.

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

Similar Threads

  1. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  2. auto delete duplicates
    By sammiantha in forum Access
    Replies: 2
    Last Post: 04-17-2012, 02:37 AM
  3. Trying to Delete record using delete query
    By MooseOTL in forum Access
    Replies: 13
    Last Post: 10-04-2011, 02:30 AM
  4. Replies: 7
    Last Post: 03-15-2011, 11:14 PM
  5. Delete a record
    By f.crocco in forum Programming
    Replies: 1
    Last Post: 10-08-2007, 07:28 AM

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