|
-
Jan 16th, 2003, 11:17 PM
#1
Thread Starter
Lively Member
Unload form
Why is my form not unloading when I code "Unload myfrm"??
-
Jan 16th, 2003, 11:20 PM
#2
PowerPoster
to give an answer that is as specific as your question, the answer is "because".
You need to be more specific. For example, are you doing it inside an event handler in the form code?
-
Jan 16th, 2003, 11:22 PM
#3
Where do you have that code?
-
Jan 16th, 2003, 11:23 PM
#4
The picture isn't missing
well.. from this thread: http://www.vbforums.com/showthread.p...hreadid=225576
maybe you have that Cancel = True in your query unload?
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Jan 16th, 2003, 11:53 PM
#5
Thread Starter
Lively Member
It's from within a command button's click event
-
Jan 16th, 2003, 11:56 PM
#6
OK then if BuggyProgrammer's suggestion isn't the reason, what is probably happening is that you are referring to some control on your form in the form's Unload event (or some code it calls). That will cause the form to reload. Set a breakpoint on the unload statement, step through the code and see what happens.
-
Jan 17th, 2003, 06:30 PM
#7
The picture isn't missing
Originally posted by Jason Carden
It's from within a command button's click event
Using Unload Me will trigger the form_unload and form_queryunload, so it could have been called from heaven, it would still have been passed through those two events.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|