thegameoflife
Programmer
Is it possible to set the value or text of a text box using this code or some other code.
i.e. When the form is opened have all the txtboxes say "hello"???
i.e. When the form is opened have all the txtboxes say "hello"???
Code:
Sub test()
Dim ctl As Control
For Each ctl In frm.Controls
If ctl.ControlType = acTextBox Then
With ctl
.SetFocus
.Enabled = True
End With
End If
Next ctl
End Sub