InsaneProgrammer
Programmer
I am creating an application that will have a lot of users and I need to minimize the number of trips the program makes to the database. I am trying to make the program execute on the client machine as much as possible. When the user initially logs on the program retrieves a recordset from the database, dumps the data into a list box, and promptly terminates the connection. The list box isn't visible to the user, it is only being used to hold the recordset. I need to have the first row of the list box populate a label. When the user clicks on the next button I need the label to be populated with the second value in the list box and so on. Anyone know how to do this? Below is the code I use to populate the list box.
Code:
Do Until rsScope.EOF
With lstQuestion
.AddItem rsScope("Question")
End With
rsScope.MoveNext
Loop