Hi,
I have a problem in that my application on occasion crashes out - without error handling catching the error. Obviously this looks very unprofessional to my users when it happens. On most occasions (but not always) it is a 3021 error - 'No current record'. It happens when I do a seek or a movefirst on a table which has no records or that I haven't got a hit on. In most cases in my project I try to overcome this by checking for a nomatch or by checking the recordcount property(which I've found to be buggy by the way) but every now and again there is no check or error handler and up pops the error and crash goes the system. My question is - is there a way of doing some sort of a global error trap so that I could at least pop up a better message to the user that something serious has gone wrong and to contact support instead of the application just falling over with an untrapped VB error. Up until now all my error trapping has been within the procedure itself. Is it possible to trap errors at form level or better yet at MDIForm level (I am using an MDIForm in this project and 99% of my forms would be children to this.
Any suggestions would be greatly appreciated
John B
I have a problem in that my application on occasion crashes out - without error handling catching the error. Obviously this looks very unprofessional to my users when it happens. On most occasions (but not always) it is a 3021 error - 'No current record'. It happens when I do a seek or a movefirst on a table which has no records or that I haven't got a hit on. In most cases in my project I try to overcome this by checking for a nomatch or by checking the recordcount property(which I've found to be buggy by the way) but every now and again there is no check or error handler and up pops the error and crash goes the system. My question is - is there a way of doing some sort of a global error trap so that I could at least pop up a better message to the user that something serious has gone wrong and to contact support instead of the application just falling over with an untrapped VB error. Up until now all my error trapping has been within the procedure itself. Is it possible to trap errors at form level or better yet at MDIForm level (I am using an MDIForm in this project and 99% of my forms would be children to this.
Any suggestions would be greatly appreciated
John B