matrixindicator
IS-IT--Management
Perhaps a basic logical thinking question. Code below is working (fine), I create buttons on a form in rows of then. I mean this is working fine if I have 10, 20 or a few more buttons.
If I have 30 or 40 buttons, he set the first 10 correct, the 20 next also correct under the 10, but more then he paste the rest on the second row
If I have 30 or 40 buttons, he set the first 10 correct, the 20 next also correct under the 10, but more then he paste the rest on the second row
Code:
one row of 10 buttons
second row of 10 buttons
third row of 10 buttons
...
Code:
t = 100
l = 100
rst.MoveFirst
Do Until rst.EOF
Set EigenControl = CreateControl(frm.Name, acCommandButton, , , , l, t, 1000, 1000)
If tnr > 9 Then
t = 1200
If tnr > 10 Then
Else
l = 100
End If
Else
End If
tnr = tnr + 1
rst.MoveNext
Loop