Activating Controls according to fields

chemram

New member
Local time
Today, 18:34
Joined
Dec 27, 2000
Messages
6
How can I get controls on a form to become active or inactive depending on the value of another form field?

eg. if a field called "exit date" is null it will make the control "exit reason" inactive until a date is put in..??
 
chemram, you can do it with this:

Private Sub ExitDate_Exit(Cancel As Integer)

If IsNull(Me.ExitDate) Then
ExitReason.Enabled = False
Else
ExitReason.Enabled = True
End If

End Sub
 

Users who are viewing this thread

Back
Top Bottom