I manage and maintain a few multiuser Access databases (each one has no more than 5 users at any given time).
One occassional nagging problem that I encounter is my db being placed in an 'unuseable' state (i.e. db needs to be repaired before continued use).
I am assuming that this problem is most likely attributed to some bugs or run-time errors in some of my code that is somehow locking up my db.
Would like to solicit any advise or opinions on how best to outfit my code with some error handling that will best 'trap' these errors and help me come up with code that will 'gracefully' close out the offending procedure thus preventing my db from getting wrecked.
Would you suggest code in the OnError event of each form, each procedure, or both? And can I both trap and report the error and close out the form or procedure without disrupting my users?
thanks
One occassional nagging problem that I encounter is my db being placed in an 'unuseable' state (i.e. db needs to be repaired before continued use).
I am assuming that this problem is most likely attributed to some bugs or run-time errors in some of my code that is somehow locking up my db.
Would like to solicit any advise or opinions on how best to outfit my code with some error handling that will best 'trap' these errors and help me come up with code that will 'gracefully' close out the offending procedure thus preventing my db from getting wrecked.
Would you suggest code in the OnError event of each form, each procedure, or both? And can I both trap and report the error and close out the form or procedure without disrupting my users?
thanks