Custom Sort Order in a Form

  • Thread starter Thread starter jrizzo77
  • Start date Start date
J

jrizzo77

Hello,

I am trying to set the sort order to a custom setting in an Access
Form (2k). I have a field with data "High", "Medium", "Low". If I
sort normal the data is viewed High, Low, Medium. I want it to sort
H,M,L. Is there anyway to do this?

Thanks
 
Create a table along the lines of:

RatingValue SortOrder
High 1
Medium 2
Low 3

Sort on the SortOrder field.
 
A couple of ways. Use a calculated field --
Sort_Field: IIF([DataField]="Low", 1, IIF([DataField]="Medium", 2, 3))

Or use a translation table and join --
DataField SortOrder
Low 1
Medium 2
High 3
 
Back
Top