Sort listbox contents based on individual column ?

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.
 
T

tina

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
 

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