Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2003
    Posts
    292

    Unanswered: Opening and Closing forms..

    I have a form that has a button to open another form .. when the button is pressed to open the second form .. i want first first form to close .. that way the user will only see the second form...

    thanks for the help

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    68
    Add the code

    Me.Hide

    after the form open command. That should do it.

    Paul

  3. #3
    Join Date
    Sep 2003
    Location
    Wetaskiwin, Ab, Ca
    Posts
    16
    This may work, but I haven't tested it.

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "second_form_to_open"
    DoCmd.OpenForm stDocName, , , stLinkCriteria
    DoCmd.Close

    Somebody else feel free to correct me if I am wrong as I am relatively new to this as well.

  4. #4
    Join Date
    Dec 2002
    Location
    Préverenges, Switzerland
    Posts
    3,740
    and the full syntax (no lingering doubt over what might be .closed)

    docmd.close acform, "theNameOfYourForm"

    izy

  5. #5
    Join Date
    Jul 2003
    Posts
    292
    thanks izzy worked !

Posting Permissions

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