Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jun 2002
    Posts
    114
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Function for visibility (Access 2000)

    I want to build a function for visbility of controls.In some cases i want the controls to be visible and in others not.
    I imagine the function like that:
    Function visibility()
    Me![control1]
    Me![control2]
    End Function

    And to call the function pointing to the visibility
    for example
    call visbility(False)
    or something like that

    Any suggestions ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Function for visibility (Access 2000)

    You can use a procedure (or function) like this:

    Sub Visibility(Flag As Boolean)
    Me.Control1.Visible = Flag
    Me.Control2.Visible = Flag
    ...
    End Sub

    and call it like this:

    Visibility True

    or

    Visibility False

Posting Permissions

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