R
Rod
I want to be able to check all the textboxes in a form. I could not find a
way to loop through the text boxes directly and when I tried the following
code Access coughed on the .Value
any hints much appreciated.
many thanks
Rod
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim Cntrl As Control
For Each Cntrl In Me.Controls
If Cntrl.ControlType = acTextBox Then
Debug.Print Cntrl.Value
End If
Next Cntrl
End Sub
way to loop through the text boxes directly and when I tried the following
code Access coughed on the .Value
any hints much appreciated.
many thanks
Rod
Private Sub Form_BeforeUpdate(Cancel As Integer)
Dim Cntrl As Control
For Each Cntrl In Me.Controls
If Cntrl.ControlType = acTextBox Then
Debug.Print Cntrl.Value
End If
Next Cntrl
End Sub