Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    May 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Date field rolling query (2002 SP1)

    I have a Date time formatted field in a table.
    Can I pull from the table with a query the lines that are a number of days (211) or older depending on that date field?
    I have been using <#1/28/2003# This means each day I run it I must calculate the date to start from.....

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Date field rolling query (2002 SP1)

    You can use the Date() function in queries:

    <=Date()-211

  3. #3
    New Lounger
    Join Date
    May 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Date field rolling query (2002 SP1)

    This has been a real mind saver!
    Thanks!

Posting Permissions

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