donkey9972
Registered User.
- Local time
- Today, 12:57
- Joined
- May 18, 2008
- Messages
- 121
Ok I have a form where I need to run a loop. The problem is I can get the first set of textboxes to enable on the loop, I just do not know how to get the 2nd set of boxes to be enabled.
So here is the code I am trying to play around with but I am not sure if it has to be a 2nd if loop or if it goes under the else or what.
The first part works good, just the 2nd part isn't.
So here is the code I am trying to play around with but I am not sure if it has to be a 2nd if loop or if it goes under the else or what.
Code:
Dim i As Integer
If Me.NumTrucks > 0 Then
For i = 1 To 17
Me("A" & i).Enabled = True
Next
Else
End If
If Me.NumTrucks > 1 Then
For i = 1 To 17
Me("A" & i).Enabled = True
Me("B" & i).Enabled = True
Next
Else
End If
The first part works good, just the 2nd part isn't.