M
Matt Howard
I don't know if this is the right group but I would
appreciate any advice. I'm not that familiar with VBA (or
VB for that matter), but I'm trying to set an object
property so that when a check box is checked then a text
box is enabled and if it is unchecked the box is
disabled. Here is my code:
Private Sub VanTrained_Click()
If Forms!frmDriverInfo2!VanTrained = "Yes" Then
Forms!frmDriverInfo2!VanCertDate.Enabled = "Yes"
Else
Forms!frmDriverInfo2!VanCertDate.Enabled = "No"
End If
End Sub
It debugs the Forms!... after the Else and says data
mismatch.
Any suggestions? Thanks, Matt
appreciate any advice. I'm not that familiar with VBA (or
VB for that matter), but I'm trying to set an object
property so that when a check box is checked then a text
box is enabled and if it is unchecked the box is
disabled. Here is my code:
Private Sub VanTrained_Click()
If Forms!frmDriverInfo2!VanTrained = "Yes" Then
Forms!frmDriverInfo2!VanCertDate.Enabled = "Yes"
Else
Forms!frmDriverInfo2!VanCertDate.Enabled = "No"
End If
End Sub
It debugs the Forms!... after the Else and says data
mismatch.
Any suggestions? Thanks, Matt