Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Dates in Query

Status
Not open for further replies.

oldgoldone

Technical User
Apr 24, 2004
13
US
I have a Query that groups my dates by quarter. My problem is that in my report that i run from the query it display date as Q2 1999, how can i get it to display 1999 2nd Quarter report
 
Take a look at the Left, Mid, Right and IIf functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Having trouble sleeping tonight so I thought I would follow PHV's suggestion and code this up for you:

Code:
Mid$([yourQtrField],4,4) & " " & Switch(Mid$([yourQtrField],2,1)=1,"1st", Mid$([yourQtrField],2,1)=2,"2nd", Mid$([yourQtrField],2,1)=3,"3rd", Mid$([yourQtrField],2,1)=1,"4th")) & " Qtr. Report"

Good luck.

[COLOR=006633]Bob Scriver[/color]
MIState1.gif
[COLOR=white 006633]MSU Spartan[/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top