Results 1 to 7 of 7

Thread: Unload form

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    70

    Unload form

    Why is my form not unloading when I code "Unload myfrm"??

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    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?

  3. #3

  4. #4
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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 .

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    70
    It's from within a command button's click event

  6. #6
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    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.

  7. #7
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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
  •  



Click Here to Expand Forum to Full Width