Custom Sort Order in a Form

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
 
D

Douglas J. Steele

Create a table along the lines of:

RatingValue SortOrder
High 1
Medium 2
Low 3

Sort on the SortOrder field.
 
K

KARL DEWEY

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
 

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