I think this is an easy one for almost everyone.. except me!
I have a form wich contains 2 sets of textboxes:
txtStuden1 - txtStudent12
txtPoint1 - txtPoint12
I fill the txtStudentX boxes from a listbox, No problem so far.
now I try to cach the first empty txtStudent textbox with a counter, and this one gives me a headache.
i have tried
and tried this
it gives me as a result: test = ""
can someone give me a hint
thx
Al
I have a form wich contains 2 sets of textboxes:
txtStuden1 - txtStudent12
txtPoint1 - txtPoint12
I fill the txtStudentX boxes from a listbox, No problem so far.
now I try to cach the first empty txtStudent textbox with a counter, and this one gives me a headache.
i have tried
For i = 1 To 6
If IsNull("Me.txtStudent" & i) Then
strCursistX = ("me.txtStudent" & i)
End If
Next i
If IsNull("Me.txtStudent" & i) Then
strCursistX = ("me.txtStudent" & i)
End If
Next i
and tried this
For i = 1 To 6
If Not IsNull(Me.Controls("txtStudent" & i)) Then
test = Me.Controls("txtStudent" & i)
Else
test = Me.Controls("txtStudent" & i)
End If
Next i
If Not IsNull(Me.Controls("txtStudent" & i)) Then
test = Me.Controls("txtStudent" & i)
Else
test = Me.Controls("txtStudent" & i)
End If
Next i
it gives me as a result: test = ""

can someone give me a hint
thx
Al