Consulting

Results 1 to 3 of 3

Thread: Form Opens Multiple Times

  1. #1
    VBAX Expert
    Joined
    Apr 2007
    Location
    Orlando, FL
    Posts
    751
    Location

    Form Opens Multiple Times

    I have a form with some cmd buttons that call other forms.

    So I have it to hide the ServerBuildForm and show the SwitchForm.
    After SwitchForm is updated or Closed it should Hide and Show the ServerBuildForm Again.

    What is happening is it seems to show the ServerBuildForm Twice.
    I close it and then it's still there after I close that one it goes away.

    This is my script.

    ServerBuildForm Call SwitchForm
    [VBA]Private Sub CmdViewSwitches_Click()
    ServerBuild.Hide
    SwitchForm.Show
    End Sub[/VBA]

    SwitchForm Hide and Reshow Original ServerBuildForm
    [VBA]Private Sub CmdAddSwitch_Update_Click()
    SwitchForm.Hide
    ServerBuild.Show
    End Sub[/VBA]

    Any Ideas what I should do. Instead of Hide should I use something else?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The workbook would probably help, see the other code.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2006
    Posts
    21
    Location
    Hi Emoncada,

    I tried your code and it works fine to me.

Posting Permissions

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