Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot quit the program!! Urgent Urgent

Posted on 1998-07-16
2
Medium Priority
?
150 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 20 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
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 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…
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…
Suggested Courses

971 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