Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    all controls invisible ? (Access 2000)

    Is there a way to make all the controls invisible in the main form except one control Back? For the rime being i make it in succession like Parent!control1.visible = False etc.

  2. #2
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: all controls invisible ? (Access 2000)

    Each form has a Controls collection, so you can use it with a for each...next loop:

    For Each ctl in Form1.Controls
    ctl.visible=false
    next ctl
    Form1.Back.visible = true
    Waggers
    If at first you do succeed, you've probably missed something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •