bbyboo1323
Programmer
Ok heres the situation. I have to add a label to a form in which when a check box is checked, the label is not visible and when its not checked, it is visible. I have entered the code as follows:
Public Sub CurrentLabel()
If [Current].Enabled = True Then
lblInactive.Visible = False
Else
lblInactive.Visible = True
End If
End Sub
Private Sub Current_LostFocus()
Call CurrentLabel
End SubPrivate Sub Form_Current()
Call GPA
Call CurrentLabel
I keep getting an error at the point where its If [Current].Enabled = True Then. so i tried .checked = true and .checked = no and neither work. Someone please help me!! Thanks
Public Sub CurrentLabel()
If [Current].Enabled = True Then
lblInactive.Visible = False
Else
lblInactive.Visible = True
End If
End Sub
Private Sub Current_LostFocus()
Call CurrentLabel
End SubPrivate Sub Form_Current()
Call GPA
Call CurrentLabel
I keep getting an error at the point where its If [Current].Enabled = True Then. so i tried .checked = true and .checked = no and neither work. Someone please help me!! Thanks