Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Sort listbox contents based on individual column ?

Geek News

Sort listbox contents based on individual column ?
mscertified 11/12/2008 11:52:00 PM
I'd like to be able to sort the contents of a listbox by clicking on a column
heading. Is this possible? Thanks.
Re: Sort listbox contents based on individual column ?
"tina" <nospam[ at ]address.com> 11/13/2008 4:14:08 AM
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.


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net