greater than & less than sorting

G

Guest

I want to create a Report, by grouping values from a query, by using seperate
expressions of X<=3, 5.5>=X>3, or X>5.5. I want to group these three
expressions in the Report
stormnnorman
 
D

Douglas J Steele

In your query, you can add a computed field along the lines of:

SortField: IIf([X] <=3, 1, IIf([X] <= 5.5, 2, 3))

If you want the text, you'd also need:

GroupText: IIf([X] <=3, "X <= 3", IIf([X] <= 5.5, "5.5 >= X > 3", "X >
5.5"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top