P
Pete
Hi there,
I have developed a shared database that runs VBA code at regular intervals
(extracting and joining data from other data sources) and at times during
the day, other users will access the database to run reports against some
tables and so forth.
I've been encountering problems such as locking errors, network errors and
so forth, that have stopped the app with a dialog box waiting for user
input. This often happens overnight and unfortunately, my app runs a daily
routine just after midnight which it never can do because of these errors.
(this is a problem because the first user in the morning has to reset the
app, and rerun the overnight jobs manually which can take up to 2 hours,
hence the reason I do it overnight).
Ideally, I'd like to be able to trap such errors and be able to instruct my
app to take another course of action if a stop error is encountered. For
instance, if I can detect the error, I can skip certain parts, or retry at
predefined intervals, or even send an email to an administrator to take
manual action.
I'd love to hear from anyone with experience in this area or to point me in
the direction of resources to understand what strategies I can use to
improve the resiliency of this database.
Many thanks,
Pete
I have developed a shared database that runs VBA code at regular intervals
(extracting and joining data from other data sources) and at times during
the day, other users will access the database to run reports against some
tables and so forth.
I've been encountering problems such as locking errors, network errors and
so forth, that have stopped the app with a dialog box waiting for user
input. This often happens overnight and unfortunately, my app runs a daily
routine just after midnight which it never can do because of these errors.
(this is a problem because the first user in the morning has to reset the
app, and rerun the overnight jobs manually which can take up to 2 hours,
hence the reason I do it overnight).
Ideally, I'd like to be able to trap such errors and be able to instruct my
app to take another course of action if a stop error is encountered. For
instance, if I can detect the error, I can skip certain parts, or retry at
predefined intervals, or even send an email to an administrator to take
manual action.
I'd love to hear from anyone with experience in this area or to point me in
the direction of resources to understand what strategies I can use to
improve the resiliency of this database.
Many thanks,
Pete