Solved

Form unload

Posted on 2002-04-11
4
186 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
Comment Utility
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
Comment Utility
MsgBox "..."
Unload Me
???
0
 
LVL 1

Accepted Solution

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

Author Comment

by:shrihalbe
Comment Utility
thanks,
shri
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now