Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, could one please give me some guidance and how I would ask a query to show me a list of entries where a date within a record is greater than 14 days from now?


    TVM, Darren.

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    [quote name='iksotof' post='771523' date='21-Apr-2009 21:45']Hi, could one please give me some guidance and how I would ask a query to show me a list of entries where a date within a record is greater than 14 days from now?


    TVM, Darren.[/quote]

    If the date field was called EventDate, your criterion would be [EventDate] > Date + 14

    Date calls the Date function that returns today's date. Dates are just numbers, so adding 14 to it creates another date 14 days from now.
    Regards
    John



  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Access requires brackets after the function name in expressions (unlike in VBA code), so the condition would be

    >Date()+14

    If you omit the brackets, Date will be interpreted as a string.

  4. #4
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='771528' date='21-Apr-2009 11:28']Access requires brackets after the function name in expressions (unlike in VBA code), so the condition would be

    >Date()+14

    If you omit the brackets, Date will be interpreted as a string.[/quote]


    Many thanks, Hans.

    Darren.

Posting Permissions

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