Wayfarer
asked on
Problem Closing a Form
Hi
I am trying to close a form down
i first hav a menu form which i keep open
then i hav a button which loads another form
this is the code for that button
Load LTInvoice
LTInvoice.Show
(Ihav 4 other buttons which open other forms just like above and i do not have this error)
now on the second form i have a button to return the user to the menu
this is the code for that button
Unload LTInvoice
LTMenu.Show
now i get this error
run time error '361'
can't load or unload this object
and debug takes me to this line
Unload LTInvoice
Help
Thanx
Wayfarer
I am trying to close a form down
i first hav a menu form which i keep open
then i hav a button which loads another form
this is the code for that button
Load LTInvoice
LTInvoice.Show
(Ihav 4 other buttons which open other forms just like above and i do not have this error)
now on the second form i have a button to return the user to the menu
this is the code for that button
Unload LTInvoice
LTMenu.Show
now i get this error
run time error '361'
can't load or unload this object
and debug takes me to this line
Unload LTInvoice
Help
Thanx
Wayfarer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Craig