Hello
I've developed an Access database with lots of VBA code. I've just gotten to the stage of deploying it on users' computers running with Access Runtime.
Clicking form buttons to run certain routines causes an error, and the generic error message "Execution of this application has stopped due to a run-time error. The application can't continue and will be shut down".
This is what you'd expect when Access Runtime hits an unhandled error in the VBA code.
The error doen't happen on my machine, even in Runtime emulation mode, so the challenge is to find out what is going wrong.
So I added proper error handling routines to bring up a message box with the error location and description so I can identify and fix the error.
BUT the problem is that I haven't been able to trap the error. It doesn't trigger the error handler in the relevant routine, and doesn't even reach the innocuous first line of code before crashing.
I have also added a new button to the form, which raises an error when clicked. That one triggers the error handler as it should.
I'd love your suggestions about what else I can do to identify the error or otherwise diagnose the problem.
thanks
Dan
I've developed an Access database with lots of VBA code. I've just gotten to the stage of deploying it on users' computers running with Access Runtime.
Clicking form buttons to run certain routines causes an error, and the generic error message "Execution of this application has stopped due to a run-time error. The application can't continue and will be shut down".
This is what you'd expect when Access Runtime hits an unhandled error in the VBA code.
The error doen't happen on my machine, even in Runtime emulation mode, so the challenge is to find out what is going wrong.
So I added proper error handling routines to bring up a message box with the error location and description so I can identify and fix the error.
BUT the problem is that I haven't been able to trap the error. It doesn't trigger the error handler in the relevant routine, and doesn't even reach the innocuous first line of code before crashing.
I have also added a new button to the form, which raises an error when clicked. That one triggers the error handler as it should.
I'd love your suggestions about what else I can do to identify the error or otherwise diagnose the problem.
thanks
Dan