Solved

Form unload

Posted on 2002-04-11
4
189 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

856 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