"Randy Harris" <pl****@send.no.spam> schreef in bericht news:wP*******************@newssvr14.news.prodigy. com...
With a multiple column listbox, I'd like to be able to change the sort
by allowing the user to click on a column. Is there a practical way
detect in which column the user clicked?
I know this could be done with a datasheet subform, but I was hoping to
be able to use the listbox.
Any suggestions?
Hi Randy,
AFAIK you can't detect the column clicked with a listbox (at least I can't ...)
but I have an idea:
- Use a listbox *without* the columnheads
- Create 'columnheads' yourself (you could use labels for this)
Just place the labelcontrols above your listbox with the proper width and so on.
Use the columnnames for the caption (and backstyle normal, backcolor white)
This will look almost the same as a listbox with columnheads
Then you can use the click-event of the labels to do whatever you like
Arno R