I have a VBA program that creates and emails a series of reports to a
mailing list. These reports are queried off tables that are linked over the
internet to a web server. Occasionally, the ODBC connection is dropped on
one of the large reports (perhaps do to high traffic over the web). When
this does happen, I would like to error trap this lost ODBC connection error
and handle it as follows:
(a) Wait 1 Hour
(b) Try to launch the report again.
(c) If item b fails the second time, then close the app.
Question:
Could use recommendation on how to suspend a program's execution for a set
period of time, then resume. Thanks for any help.
Comment