Hello all.
I have a table of 'issues' which can either be 'Resolved', 'Partially resolved' or 'Unresolved'.
I've written a report to summarise the issue by their status, but the report is sorted in alphabetical order, so 'Partially resolved' comes first, followed by 'Resolved'.
What I want to do is to force the records to sort so that 'Resolved' comes first, then 'Partially resolved', then 'Unresolved'. I can get this to happen by adding a calculated field to my query along the lines of "iif(status='Resolved', 1, iif(status='PArtially resolved', 2,3)) and then sorting by the calculated field.
But I have it in the back of my head that there must be a better way to do it.
Is there a better option ?
Thanks very much to anyone that can help out.
Regards,
StepOne
I have a table of 'issues' which can either be 'Resolved', 'Partially resolved' or 'Unresolved'.
I've written a report to summarise the issue by their status, but the report is sorted in alphabetical order, so 'Partially resolved' comes first, followed by 'Resolved'.
What I want to do is to force the records to sort so that 'Resolved' comes first, then 'Partially resolved', then 'Unresolved'. I can get this to happen by adding a calculated field to my query along the lines of "iif(status='Resolved', 1, iif(status='PArtially resolved', 2,3)) and then sorting by the calculated field.
But I have it in the back of my head that there must be a better way to do it.
Is there a better option ?
Thanks very much to anyone that can help out.
Regards,
StepOne