Oct 25, 2006 #1 kpetas Programmer Oct 19, 2006 11 ES I want to put selected one value in cad ListBox, It says me that I use incorrectly the ListIndex I have this code: For j = 0 To cad.ListCount If cad.Column(1, j) = Me.Lista3.Column(0, 1) Then cad.ListIndex = j End If Next
I want to put selected one value in cad ListBox, It says me that I use incorrectly the ListIndex I have this code: For j = 0 To cad.ListCount If cad.Column(1, j) = Me.Lista3.Column(0, 1) Then cad.ListIndex = j End If Next
Oct 25, 2006 Thread starter #2 kpetas Programmer Oct 19, 2006 11 ES This is the Listbox rowsource SELECT Kide.Codigokide, Kide.Nombrekide FROM Kide ORDER BY [Codigokide]; Upvote 0 Downvote
This is the Listbox rowsource SELECT Kide.Codigokide, Kide.Nombrekide FROM Kide ORDER BY [Codigokide];
Oct 25, 2006 #3 PHV MIS Nov 8, 2002 53,708 FR You may try this: For j = 0 To cad.ListCount - 1 If cad.Column(1, j) = Me.Lista3.Column(0, 1) Then cad.SetFocus cad.ListIndex = j Exit For End If Next Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
You may try this: For j = 0 To cad.ListCount - 1 If cad.Column(1, j) = Me.Lista3.Column(0, 1) Then cad.SetFocus cad.ListIndex = j Exit For End If Next Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886