![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This seems like a silly little problem that ought to have a simple solution... but I've searched in vain for one. Among the various controls on a form, I have a combobox which, when updated, changes the rowsource of an adjacent listbox. What I then want to do then is select the first item in the listbox. This I can do by using Me!Listbox.Selected(0) = True, but when I do this, the form pretty much stops responding - I can no longer click on any of the other controls in my form. I can still click on the aforementioned combobox and select new items from it, but I can't click on any of the other comboboxes in the form, nor can I tab to them with the keyboard. I've tried using setfocus to move the focus onto some other control but this brings up 2110 run-time errors. If this problem rings a bell with anyone, I'd be unspeakably grateful for any tips... Jim. Is it a multiselect listbox? If not, you could do me!Listbox.listindex=0 |
#3
| |||
| |||
|
|
This seems like a silly little problem that ought to have a simple solution... but I've searched in vain for one. Among the various controls on a form, I have a combobox which, when updated, changes the rowsource of an adjacent listbox. What I then want to do then is select the first item in the listbox. This I can do by using Me!Listbox.Selected(0) = True, but when I do this, the form pretty much stops responding - I can no longer click on any of the other controls in my form. I can still click on the aforementioned combobox and select new items from it, but I can't click on any of the other comboboxes in the form, nor can I tab to them with the keyboard. I've tried using setfocus to move the focus onto some other control but this brings up 2110 run-time errors. |
![]() |
| Thread Tools | |
| Display Modes | |
| |