I am trying to create dynamicaly an array of label based on the recordset value. What am I doing wrong?
For i = 0 To rs.RecordCount
While Not rs.EOF
Set lblInput(i) = Main.Controls.Add("VB.Label", rs("PlanChangeDesc"
)
With lblInput(i)
.Width = 3000
.Height = 3000
End With
rs.MoveNext
Next i
Wend
For i = 0 To rs.RecordCount
While Not rs.EOF
Set lblInput(i) = Main.Controls.Add("VB.Label", rs("PlanChangeDesc"
With lblInput(i)
.Width = 3000
.Height = 3000
End With
rs.MoveNext
Next i
Wend