smartphreak
Board Regular
- Joined
- Mar 24, 2011
- Messages
- 52
Hey guys,
I am trying to create a dynamic form where I loop through the variable and create labels (and ultimately cbo) using the variable.
I get a Compile error... Any thoughts?
I am trying to create a dynamic form where I loop through the variable and create labels (and ultimately cbo) using the variable.
VBA Code:
Do While d >= dx
With Me.Label(dx)
.Caption = "How many task in Phase " & dx & "?"
.Width = 150
.Height = 30
.Left = 5
.Top = 10 * dx + 30 * (dx - 1)
End With
dx = dx + 1
Loop
I get a Compile error... Any thoughts?