Solved

Cannot quit the program!! Urgent Urgent

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

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

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…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

739 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