Form On Error event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kmercer46@yahoo.com

    #1

    Form On Error event

    i want to use a form's OnError event to close the form if an error
    occurs, but the event is not working. it just brings up the error
    window with the End and Debug buttons. i remember seeing an option
    somewhere that consults the form's event before any other control's
    event, but i can't find that in any property windows. is that the
    issue?

    or.. maybe someone can hear my main problem and address another way to
    handle it:

    my form uses global variables. when an error occurs, though, the
    project is reset and my variables lose their values. i want the forms
    to close when an error occurs so that the user has to re-open the form
    to refill the variables.

  • Jeff Dillon

    #2
    Re: Form On Error event

    Is this the behavior in the IDE? Try compiling and then running the app from
    the command line

    And you want the user to refill in everything? Not very friendly..shoul dn't
    you trap the error in the first place, and notify the user?

    Jeff
    <kmercer46@yaho o.com> wrote in message
    news:1144776158 .484263.195350@ i39g2000cwa.goo glegroups.com.. .[color=blue]
    >i want to use a form's OnError event to close the form if an error
    > occurs, but the event is not working. it just brings up the error
    > window with the End and Debug buttons. i remember seeing an option
    > somewhere that consults the form's event before any other control's
    > event, but i can't find that in any property windows. is that the
    > issue?
    >
    > or.. maybe someone can hear my main problem and address another way to
    > handle it:
    >
    > my form uses global variables. when an error occurs, though, the
    > project is reset and my variables lose their values. i want the forms
    > to close when an error occurs so that the user has to re-open the form
    > to refill the variables.
    >[/color]


    Comment

    Working...