VB 2005 Express-String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dreamdelerium
    New Member
    • Feb 2008
    • 2

    VB 2005 Express-String

    hi guys. just looking for a little help. in VBA this works fine but when i try it in vb i get the error "class cannot be indexed because it has no default property"
    what it should be doing is edit

    For i = 0 To 41
    With Me("lblDay" & Format(i, "00"))
    'do some stuff with me.lblDay00...l blDay41
    End With

    Next
    what im trying to do is edit 41 labels, named lblDay00-lblDay41.
    any ideas
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You need to use the Me.FindControl( ) function. Check MSDN for usage of it.

    Comment

    Working...