-
Ok, im back with another dumb question :) welp, what im doing is pullling data from an oracle db and putting it into a listview...the problem im having is that once i populate the listview with data, and i DONT select anything and click OK on my form...it selects the first item in the listview and puts the data onto a different form...what should happen is that if i dont select anything on the listview and click ok, nothing should happen....but instead the first item always gets selected...anyone know a way around this? thanks
-
try :
Code:
Dim itemSelected As Boolean
Private Sub ListView1_Click()
itemSelected = True
End Sub
Private Sub Command1_Click()
If itemSelected = True Then
'execute code
End If
End Sub