C
Cheryl
I have a listbox on a form. In the click event, I'm trying
to figure out which item was selected, with the following
code:
Dim varcounter As Integer
For varcounter = 0 To Me!lstProperty.ListCount - 1
If Me!lstProperty.Selected(varcounter) Then
Me!txtDumyNum = Me!lstProperty.Column(4,varcounter)
End If
Next varcounter
The txtDumyNum is never getting set. However, if I paste
this identical code into the double-click event, it works.
Evidently, a single click does not set the
listbox's .selected property.
Is this the way it's supposed to work?
Thanks!
Cheryl
to figure out which item was selected, with the following
code:
Dim varcounter As Integer
For varcounter = 0 To Me!lstProperty.ListCount - 1
If Me!lstProperty.Selected(varcounter) Then
Me!txtDumyNum = Me!lstProperty.Column(4,varcounter)
End If
Next varcounter
The txtDumyNum is never getting set. However, if I paste
this identical code into the double-click event, it works.
Evidently, a single click does not set the
listbox's .selected property.
Is this the way it's supposed to work?
Thanks!
Cheryl