Using a Check Box to make a Text Visible/Invisible

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rwest
    New Member
    • Dec 2011
    • 10

    Using a Check Box to make a Text Visible/Invisible

    Hello
    I have a form where there is a check box and it clicked new text is visible. The problem is when I add a new record that does not have the check box checked and then I filter through the rest of the records that do have it checked the text is no longer visible. below is the code that I have. Thanks for the help.

    Code:
    If Me.Check117 Then
    Me.duration.Visible = True
    Me.txthrs.Visible = True
    Me.eventdateend.Enabled = False
    eventdateend = eventdatestart
    Else
    Me.duration.Visible = False
    Me.txthrs.Visible = False
    Me.eventdateend.Enabled = True
    End If
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Put that code in the On Current event of the form as well.

    Comment

    • rwest
      New Member
      • Dec 2011
      • 10

      #3
      Thanks! I knew it was something like that I just couldn't find the right event.

      Comment

      Working...