Sort for High, Medium, Low

cookitup

Registered User.
Local time
Today, 10:13
Joined
Apr 4, 2012
Messages
33
I amtrying to sort a query and a report to "high, medium, and low" I have looked at several threads on this forum to answer that question, But i guess i am still so new, i cant quite figure out how to do this. I have created a column for 'Priority", and "priority by number" to facilitate this but every time i try to use the IIf function, it doesnt work. Please help
 
Why don't you post the function so we can fix it?
 
iif(Priority='H', 0, iif(Priority='M', 1, 2))
I put this in the Criteria: section of the query.
 
It doesn't sound like you want it in the criteria, rather as a field so you can sort on it. In a new field:

SortField: iif(Priority='H', 0, iif(Priority='M', 1, 2))
 
That was all i needed, i knew i was putting it in the wrong section. Thanks a bunch
 
New Problem, Works great in the query, but not in the report. The query is set up to only sort by the sort field created with the numbers for priority. What do you need to answer this question?
 
Have you set up the same thing in the report's Sorting and Grouping.
 
Last edited:
Big duh...omn my part...I guess ive been too busy that i havent thought it out clearly! once again, Thanks for being my "thinking straight" brain!!! lol
 

Users who are viewing this thread

Back
Top Bottom