asked on
Private Sub Form_Load()
Dim ctl As Control, frm As Form
Set frm = Forms!frmPatientExams!sbfXmlData.Form
For Each ctl In frm
If TypeOf ctl Is TextBox Then
ctl.Enabled False
End If
Next ctl
End Sub
ASKER
ASKER
Private Sub Form_Load()
Dim ctl As Access.Control
Dim newTextBox As Access.TextBox
For Each ctl In Me.Controls
If TypeOf ctl Is Access.TextBox Then
Set newTextBox = ctl
newTextBox.Enabled = False
End If
Next
End Sub
ASKER
Private Sub Form_Load()
Dim ctl As Control, frm As Form
Set frm = Forms!frmPatientExams!sbfXmlData.Form
For Each ctl In frm
If TypeOf ctl Is TextBox Then
ctl.Properties("Enabled") = False
'ctl.Enabled = False
End If
Next ctl
End Sub
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
ASKER