View Single Post
  #3  
Old November 5th, 2009, 02:45 PM posted to microsoft.public.access.forms
Dorian
external usenet poster
 
Posts: 542
Default Programmatically change combo box sorting

Why not have them click the combo box label to change the sort order? You
could even change the label background color to reflect the order.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"alt.binaries.cd.genealogy" wrote:

I am looking for a way in Acc2003 to change the sorting of a combo
box, depending if the user holds down the Shift key when clicking the
combo box (i.e. no shift key = sort order (A), shift key down = sort
order (B)).

I have tried changing the combo boxes .RowSource in the On Mouse Down
event (which works) and checking for the Shift key, but this somehow
prevents setting the selected item in the dropdown list. Actually
just setting the existing .RowSource in the On Mouse Down prevents
item selection in the dropdown list.

Any ideas ??
.