G
Guest
I have a form with a combobox and a list. The list is dependent on the
selection in the combobox. When the user makes a selection in the combobox i
do a requery of the list. The next step for the user is to select a single
line in the listbox. The problem is that this is not possible because the
focus is still on the combobox. I have tried to move the focus with the
setfocus method and the itemdata property of the listbox, but it does not
work.
This is my code
Private Sub comboVelgMnd_AfterUpdate()
Me.lstMndMenyer.Requery
Me.lstMndMenyer.Value = Me.lstMndMenyer.ItemData(0)
Exit Sub
selection in the combobox. When the user makes a selection in the combobox i
do a requery of the list. The next step for the user is to select a single
line in the listbox. The problem is that this is not possible because the
focus is still on the combobox. I have tried to move the focus with the
setfocus method and the itemdata property of the listbox, but it does not
work.
This is my code
Private Sub comboVelgMnd_AfterUpdate()
Me.lstMndMenyer.Requery
Me.lstMndMenyer.Value = Me.lstMndMenyer.ItemData(0)
Exit Sub