Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Close a subform (Access 2002)

    I have a cmd button on my main form; how do I get it close a sub form when I click on the command button?

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

    Re: Close a subform (Access 2002)

    What do you mean by "close a subform"? You cannot really close a subform of another form; you could hide it however:

    Private Sub cmdHideSubform_Click()
    Me.NameOfSubform.Visible = False
    End Sub

    You must use the name of the subform as a control on the main form, this could be different from the name of the subform in the database window.

    If you want something else, please explain.

Posting Permissions

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