Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox [active] being checked or not. Below is the code. Visibility is not adhering to the record [active] checkbox value. Screenshot also below. Any ideas?
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox [active] being checked or not. Below is the code. Visibility is not adhering to the record [active] checkbox value. Screenshot also below. Any ideas?
Code:
Private Sub Form_Current()
Dim db As DAO.Database
Set db = CurrentDb
lblinactive.Visible = False
lblactive.Visible = False
'+++++++++++++++++++++++
If Me.active.Value = 0 Then
lblinactive.Visible = True
lblactive.Visible = False
Else
lblinactive.Visible = False
lblactive.Visible = True
End If
End Sub
Comment