Link to home
Start Free TrialLog in
Avatar of Wayfarer
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
ASKER CERTIFIED SOLUTION
Avatar of Dalin
Dalin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wayfarer
Wayfarer

ASKER

Thanx mate i had a button on the form called the same thing

Craig