Problem Closing a Form

Posted on 1999-01-19
Last Modified: 2010-05-03
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
(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

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


Question by:Wayfarer
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Dalin earned 40 total points
ID: 1469405
You probably have a typo or you have some control named LTInvoice in the form.
Unload me

Beside, use frmSomething to name your forms.

Author Comment

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


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question