?
Solved

Problem Closing a Form

Posted on 1999-01-19
2
Medium Priority
?
139 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
[X]
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
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 160 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 14 hours left to enroll

801 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