Sort listbox contents based on individual column ?

  • Thread starter Thread starter mscertified
  • Start date Start date
M

mscertified

I'd like to be able to sort the contents of a listbox by clicking on a column
heading. Is this possible? Thanks.
 
i can't think of a way. a listbox control has no property that can
distinguish which of multiple columns has been clicked - the click is simply
"read" as a click in the control, period. you might consider using a subform
instead, set to Datasheet or ContinuousForms view. in datasheet view, a
right click will provide a default shortcut menu that includes sorting A-Z
or Z-A. in continuous forms view, you can write code to resort the recordset
with a click pretty much anywhere you choose.

hth
 
Back
Top