I am using the following :
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass})) & "-" & TOTEXT({@Date - YY as #})
I am trying to return in my chart "Q1-2008" but I get "Q1.00-2008.00" how do I remove the decimals and following zeros
I believe you can specify the number of decimal places you want to use in a numbeer field. So your code should say
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass}), 0) & "-" & TOTEXT({@Date - YY as #}, 0)
Thank you pavandyke. That worked! Now I am trying to remove the thousand seperator in the year output. I now have:
"Q" & TOTEXT(DatePart("Q",{Registration_List.DateOfClass}), 0) & "-" & TOTEXT(DatePart ("YYYY",{Registration_List.DateOfClass} ),0)
but the output is : "Q1-2,008" and want "Q1-2008" better yet "Q1-08" any help would be great.
Pavandyke - I figured it out the thousand seperator. I just have not figured out how to make the year = "YY" vs. "YYYY" as the datepart command does not allow "YY".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.