S SoRico May 4, 2005 #1 How do I create a Load event procedure that moves the focus to the first query name in the list box when form opens.
How do I create a Load event procedure that moves the focus to the first query name in the list box when form opens.
G Graham R Seach May 4, 2005 #2 I'd move that stuff to the Current event: Assuming the first query name equates to the first item in the listbox's list: Private Sub Form_Current() Me.lstMyList.SetFocus Me.lstMyList.Selected(0) = True End Sub Regards, Graham R Seach Microsoft Access MVP Sydney, Australia
I'd move that stuff to the Current event: Assuming the first query name equates to the first item in the listbox's list: Private Sub Form_Current() Me.lstMyList.SetFocus Me.lstMyList.Selected(0) = True End Sub Regards, Graham R Seach Microsoft Access MVP Sydney, Australia