0

Hi
I need the code in VB6 to display data from a database in a listbox
i tried the following code but its not working
Do While Not rec2.EOF
List1.ItemData(List6.NewIndex) = rec2.Fields(4)
rec2.MoveNext

' i even tried
Do While Not rec2.EOF
List1.ItemData rec2.Fields(4)
rec2.MoveNext

2
Contributors
1
Reply
3
Views
9 Years
Discussion Span
Last Post by jp26198926
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.