Solved

Cannot quit the program!! Urgent Urgent

Posted on 1998-07-16
2
137 Views
Last Modified: 2010-05-03
I've wrote a program using rdo. When I use "Unload me" to quit the program, that havent any response, so cannot quit the program.  How to solve it?  What's wrong?
0
Comment
Question by:Galvani
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
swilt earned 10 total points
ID: 1465958
Could be any number of possibilities,

The 'unload me' is called from the main form you wish to unload, not a procedure in a module.

Another form could be hidden and needs unloading

Try unloading the form explicitly i.e. unload Form1

try running this in the immediate window (you may have to press crtl-break) when you think the form should have unloaded
Put the code in a module
Public Sub ShowFormNames
    dim frm as form
   
    for each frm in Forms
        debug.print frm.name
    next
End Sub

put a break point in the QueryUnload and Unload events to make sure it is going in there, bearing in mind if Cancel is set to 1 in QueryUnload it will stop the form from unloading

As a last resort rename ShowFormNames to UnloadAllForms and change
'debug.print frm.name' to 'unload frm'
0
 
LVL 2

Expert Comment

by:swilt
ID: 1465959
Also if you press ctrl-break then F8 is there any code still running anywhere (i.e. a loop of some kind)

And as an extreme last resort use 'End' to terminate the program
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now