Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    8

    Unanswered: How to specify the "previous quarter"

    Hello all

    Trying to make access only select data from the previous quarter. So far I have

    Select *
    From Noninvest_Trans
    Where Trans_Date... this is where I get stuck!

    Any ideas? Have googled it and found nothing so far.

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Where datepart("q", Trans_Date) = datepart("q", dateadd("q", -1, Now()))
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Mar 2006
    Posts
    8
    Well that worked... sort of. It output the results of the previous quarter for both 2006 and 2005! How do I only make it 2006?

  4. #4
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Hi

    Another useful date function is Year([Date_Value]). Check it out in help and apply in the same way as Teddy outlined for quarter (make sure the year of the date matches the current year...).

    HTH
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

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