Solved

Cannot quit the program!! Urgent Urgent

Posted on 1998-07-16
2
138 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

809 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