Results 1 to 2 of 2
  1. #1
    lonesoac0 is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Aug 2014
    Posts
    36

    When check box is checked, more fields appear

    Hello all,

    I have a check box named "Flashes of light?" I would like to show more fillable fields when that field is checked. How do I do that?

    Thank you.

  2. #2
    Eljefegeneo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    14
    Well, not knowing what you have on your forms, you probably have to do two things.
    Using the OnCurrent event, set the visibility of the other fields with something like this:
    Code:
    If Me.[Flashes of Light] = True then
    Me.Field1.visible = True
    All the other fields in the same way
    Else
    Me.Field1.visible = False
    Etc.
    End if
    And in the after update of [Flashes of Light] enter the same code. Actually you can avoid doing it a second time by writing the code in a public sub and then running the code in the Form OnCurrent Event and the checkbox AfterUpdate Event.

    i.e.
    Code:
    Public Sub Flashes()
    If Me.[Flashes of Light] = True then
    Me.Field1.visible = True
    All the other fields in the same way
    Else
    Me.Field1.visible = False
    Etc.
    End if
    End sub
    Then in the OnCurrent event type
    Flashes
    And in the AfterUpdate of the check box type
    Flashes

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

Similar Threads

  1. Replies: 7
    Last Post: 03-17-2016, 10:42 AM
  2. Replies: 16
    Last Post: 02-05-2014, 05:50 PM
  3. Make Calculation in Report IF Check box is checked in form
    By johnjmcnaughton in forum Programming
    Replies: 1
    Last Post: 03-26-2013, 12:13 PM
  4. Replies: 1
    Last Post: 02-15-2013, 08:44 AM
  5. Replies: 22
    Last Post: 11-14-2011, 10:29 AM

Tags for this Thread

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