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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Computed Item Issue

Status
Not open for further replies.

bizproducer

Programmer
Jan 20, 2005
19
US
Ok, I have data in a field called 'Month' that is formatted like this "Jan 2002", "Feb 2002", and so on...

Using a computed item, I want to derive a new field from the 'Month' column called 'Quarter' and I want it formated like "2002 Q1", "2002 Q2", etc.

I have tried to use LTrim, ToQtr and if statements like this:

if (Request.Month == 'Jan 2002') {'2002 Q1'}

Maybe I just need a lesson in syntax? Please help! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top