G
Guest
Hello,
I have a form with an Integer field that has Normal=1 and Abnormal=2. I
would like to gray out subsequent fields on the form depending on which value
is chosen. I have the following code for a Boolean field (see sample code),
but I can't quite figure out the code for an Integer field.
Sample code:
Private Sub brain_notd_AfterUpdate()
Dim blnEnable As Boolean
blnEnable = (Me.brain_notd.Value <> True)
Me.ctbraindt.Enabled = blnEnable
Me.Framectbrainres.Enabled = blnEnable
End Sub
I would like to adjust the above code to gray out subsequent fields
depending on whether 'Normal(=1)' or 'Abnormal(=2)' is chosen.
Thank you.
I have a form with an Integer field that has Normal=1 and Abnormal=2. I
would like to gray out subsequent fields on the form depending on which value
is chosen. I have the following code for a Boolean field (see sample code),
but I can't quite figure out the code for an Integer field.
Sample code:
Private Sub brain_notd_AfterUpdate()
Dim blnEnable As Boolean
blnEnable = (Me.brain_notd.Value <> True)
Me.ctbraindt.Enabled = blnEnable
Me.Framectbrainres.Enabled = blnEnable
End Sub
I would like to adjust the above code to gray out subsequent fields
depending on whether 'Normal(=1)' or 'Abnormal(=2)' is chosen.
Thank you.