Results 1 to 5 of 5

Thread: Purge Qeury

  1. #1
    ewatson
    Guest

    Purge Qeury

    Is there an easy way to make a query that will purge all records say before an entered date?

    Thanks,
    Ed

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Purge Qeury

    Hi Ed,

    You'll find the answer to this is using a Delete Query. There are a lot of things to be cautions about when using Delete queries (such as backing up the original data first), but they are definitely the answer to this situation.

    You may want to consult the Access help for the specifics on how to set one up. Post back if you need further assistance. <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>

  4. #3
    5 Star Lounger
    Join Date
    Feb 2001
    Location
    Youngstown, Ohio, USA
    Posts
    705
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Purge Qeury

    Simple way, which will keep your query flexible enough for future use, would be to put the following on the criteria line for the date field in the delete query:

    <=[Enter Date to delete records from]

    Whenever you run the query, it will prompt you to enter a date, and then delete all records where the date field is less than or equal to the input date.

  5. #4
    ewatson
    Guest

    Re: Purge Qeury

    That did the trick. thanks a ton

    Ed

  6. #5
    5 Star Lounger
    Join Date
    Jan 2001
    Location
    Newbury, Berkshire, England
    Posts
    712
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Purge Qeury

    Good idea that, putting your version in your signature! I might try that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •