Form unload

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
shrihalbeAsked:
Who is Participating?
 
TechJDConnect With a Mentor Commented:
dim msg as string
if var <> setvalue then
msg = msgbox("your message",0,"title")
unload me
else
end if
0
 
Richie_SimonettiIT OperationsCommented:
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
 
soferstamCommented:
MsgBox "..."
Unload Me
???
0
 
shrihalbeAuthor Commented:
thanks,
shri
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.