Solved

Form unload

Posted on 2002-04-11
4
188 Views
Last Modified: 2010-05-02
Hello

  in forload even i am checkin the values in the form if not satisfied then message box will be given and form will be unloaded . so how can i do that?
THanks,
shri
0
Comment
Question by:shrihalbe
4 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6934847
you need to manage queryunload event instead, check the required values, show msgbox if you need and set cancel to false to not unload form.
0
 
LVL 1

Expert Comment

by:soferstam
ID: 6934902
MsgBox "..."
Unload Me
???
0
 
LVL 1

Accepted Solution

by:
TechJD earned 20 total points
ID: 6942591
dim msg as string
if var <> setvalue then
msg = msgbox("your message",0,"title")
unload me
else
end if
0
 

Author Comment

by:shrihalbe
ID: 6942665
thanks,
shri
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

773 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