PDA

View Full Version : Form Opens Multiple Times



Emoncada
02-03-2009, 01:57 PM
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
Private Sub CmdViewSwitches_Click()
ServerBuild.Hide
SwitchForm.Show
End Sub

SwitchForm Hide and Reshow Original ServerBuildForm
Private Sub CmdAddSwitch_Update_Click()
SwitchForm.Hide
ServerBuild.Show
End Sub

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

Bob Phillips
02-03-2009, 04:50 PM
The workbook would probably help, see the other code.

X10A
02-03-2009, 08:52 PM
Hi Emoncada,

I tried your code and it works fine to me.