Solved

Problem Closing a Form

Posted on 1999-01-19
2
137 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
ID: 1469405
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
ID: 1469406
Thanx mate i had a button on the form called the same thing

Craig
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 101
Validating VB6 Function 19 68
bit defender blocks good applications 2 107
transition to visual .net from vb6 5 63
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

726 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