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
"mscertified" <rupert[ at ]tigerlily.com> wrote in message news:73B45AA3-517A-4C31-A7D6-8D0C0C812CD1[ at ]microsoft.com...
[Quoted Text] > I'd like to be able to sort the contents of a listbox by clicking on a
column > heading. Is this possible? Thanks.
|