Click here to Skip to main content
15,849,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For i = 1 To lblAcc.Count
lblAcc(i).Caption = rs1!Value
Next i
im using this code but it gives error item cannot be found in the collection curresponding to the requested name or ordinal

Apparently the item you're looking for is not there. Why do you think that it is there ? I don't see how you think this gives us anywhere near the sort of info we need to help you.

As you're obviously just starting to learn, now is the time to abandon VB6, a language that has been obsolete for a decade.
Share this answer
Hi, try replacing rs1!Value with rs1.fields("NameOfField").value.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900