Results 1 to 6 of 6
  1. #1
    rmilsley is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2013
    Location
    Calgary, Alberta, CANADA
    Posts
    6

    Conditional Formatting of a Label

    In an Access 2010 form, I want to trigger a change of visibility of a label, when it's corresponding checkbox is selected. In other words, if No, the Label is not visible, if yes, the label is visible

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You would do that in the Click Event of the Checkbox.

  3. #3
    rmilsley is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2013
    Location
    Calgary, Alberta, CANADA
    Posts
    6
    How do I do that?

    Many Thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    This would go in the Click Event code window.
    Code:
    Private Sub YourCheckBoxName_Click()
       If Me.YourCheckBoxName Then
          Me.YourCheckBoxLabelName.Visible = True
       Else
          Me.YourCheckBoxLabelName.Visible = False
       End If
       
    End Sub
    ...replacing the highlighted values with your values of course.

  5. #5
    rmilsley is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2013
    Location
    Calgary, Alberta, CANADA
    Posts
    6
    Many Thanks

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're welcome. Glad we could help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 05-26-2013, 09:10 PM
  2. Conditional Formatting of a label
    By pbparady in forum Access
    Replies: 1
    Last Post: 01-31-2012, 01:12 PM
  3. Conditional Formatting
    By ccordner in forum Reports
    Replies: 6
    Last Post: 01-09-2012, 04:12 PM
  4. Formatting a label
    By swicklund in forum Reports
    Replies: 4
    Last Post: 08-24-2010, 03:27 PM
  5. Conditional Formatting
    By cevatyildiz in forum Forms
    Replies: 8
    Last Post: 04-30-2010, 12:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums