+ Reply to Thread
Results 1 to 2 of 2

Thread: How to Display Year Attribute with Quarters

  1. #1
    Forum Guru Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,264

    How to Display Year Attribute with Quarters

    Hi all,

    I have a query that generates quarterly values using:
    Quarters: IIf(Month([Datev]) In (1,2,3),"Quarter 1",IIf(Month([Datev]) In (4,5,6),"Quarter 2",IIf(Month([Datev]) In (7,8,9),"Quarter 3","Quarter 4")))
    . This displays Quarter 1, Quarter2, and so on but not the year that the quarter is a part of. For my query, the Criteria is
    Between #1/1/2007# And #12/1/2007#
    . How can I display this to look like, say: Quarter 1 - 2007 or Q1-07?

    Thank you biggie-big!


    EDIT: I have created a crosspost here.
    Last edited by Mordred; 06-30-2011 at 09:52 AM.
    Please leave a message after the beep!

  2. #2
    Forum Guru Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,264

    Re: How to Display Year Attribute with Quarters

    Here is what I have been guided to from this site:
    Qtr: "Q" & Format([Datev],"q-yyyy")
    and it works beautifully!
    Please leave a message after the beep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0