I have been looking all around these forms and cant get any answer !
I have a listbox on a form that is part of a record selecting process. When the form first opens, no items in the listbox are highlighted. I need a way to make the first item in the listbox highlighted when the form first opens.
I have come across a few solutions such as: Me.lstCategory.Selected(0) = True
However these solution only VISUALY highlight the selected item. It may be highlighted but you cannot get a value returned from it. I determined this because I have other objects that run queries based on the selected item in the listbox, and they are not computing any values. Only after I phyiscally click on the highlighted item, do other values get computed.
Any ideas? Thanks !
I have a listbox on a form that is part of a record selecting process. When the form first opens, no items in the listbox are highlighted. I need a way to make the first item in the listbox highlighted when the form first opens.
I have come across a few solutions such as: Me.lstCategory.Selected(0) = True
However these solution only VISUALY highlight the selected item. It may be highlighted but you cannot get a value returned from it. I determined this because I have other objects that run queries based on the selected item in the listbox, and they are not computing any values. Only after I phyiscally click on the highlighted item, do other values get computed.
Any ideas? Thanks !