Solved

Problem Closing a Form

Posted on 1999-01-19
2
133 Views
Last Modified: 2010-05-03
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
0
Comment
Question by:Wayfarer
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 40 total points
Comment Utility
You probably have a typo or you have some control named LTInvoice in the form.
Try:
Unload me

Beside, use frmSomething to name your forms.
Regards
Dalin
0
 

Author Comment

by:Wayfarer
Comment Utility
Thanx mate i had a button on the form called the same thing

Craig
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now