I wasn't sure how your expression was set up because you are using the min and max functions. Can you give me a little more detail how your query is set up. In the mean time I could get 2 - 11, 12 - 21, 22 - 31 or I could get 3 - 12, 13 - 22, 23 - 32 etc.
The basic expression is
(Int(([Age]-2)/10)*10)+2 & "-" & (Int(([Age]-2)/10)*10)+12
Let me know about your query and I'll look at it some more.
2 - 12 contains 11 year increments
13 - 22 and the rest on up contain 10 year increments. If you have to have 2 - 12 as the first group then you could use this:
SELECT [Client's Age].Age, Count([Client's Age].Age) AS Count Of Client's Age, IIf([Age]<=12,"2-12",(Int(([Age]-2)/10)*10)+3 & "-" & (Int(([Age]-2)/10)*10)+12) AS Expr1
FROM [Client's Age]
GROUP BY [Client's Age].Age;
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.