J
JT
I have a macro in an Access database that compacts each of the databases in a
specific folder on a shared network drive on a daily basis. It works pretty
well except when a user will occassionally leave their database open. Then
it stops the macro from running.
I was going to add an "On Error Resume Next" right before the line that
compacts the database.
My concern is the next 5 lines of code all pertain to the database that
should be closed.
Is there a way that I can use an On Error statment but have it skip the next
5 lines of code and when it resumes, pick up with the code 6 lines down?
Thanks for the help......
specific folder on a shared network drive on a daily basis. It works pretty
well except when a user will occassionally leave their database open. Then
it stops the macro from running.
I was going to add an "On Error Resume Next" right before the line that
compacts the database.
My concern is the next 5 lines of code all pertain to the database that
should be closed.
Is there a way that I can use an On Error statment but have it skip the next
5 lines of code and when it resumes, pick up with the code 6 lines down?
Thanks for the help......