The list box has 4 columns, when its populated by the query, it just appears in the box. Its not selected, so accessing the value through "me.list.column (1)" reports nothing until it has been selected. I dont know how to have a text box report back results from a query, can it do that?
sgfromny,
using the selected property of the list box can authomatically shif focus to a desired row. Modifying the code below to suit your need may work.
Private Sub Command2_Click()
On Error GoTo Err_Exit
'i is a global Variable
List0.Selected(i) = -1
If i = 0 Then
i = 1
Else
i = 0
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.