Site keeps erroring:
Al:
On form with button, paste this code behind the click event.
[code--Form1]
SetMainForm=Me
Visible=False
[/code]
On 2nd Form, paste this code inside the Formevents.Closing event.
[Code--Form2.Closing]
FRM1=GetMainForm
FRM1.Visible=True
[/code]
Create a module and add the properties to Set and Get the Main Form
[Code--Module1]
Public FRM1 as Form1
Public WriteOnly Property SetForm() As Form1
Set(ByVal Value As Form1)
FRM1 = Value
End Set
End Property
Public ReadOnly Property GetForm() As Form1
Get
Return FRM1
End Get
End Property
[/code]
I hope this helps.
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.