G
Guest
I'm looping through a list of files to compress one at a time. I'm getting
an error when a database has a password. I need to skip over that one, but
I'm having trouble trapping the error. I have an OnERR statement, but it
throws a Run-time error: 3031. Any suggestions?
Here's a snippet of the code:
Private Sub cmdCompact_Click()
On Error GoTo Err_Log_Error
Dim oldFullPath As String
Dim newFullPath As String
DAO.DBEngine.CompactDatabase newFullPath, oldFullPath
Err_Log_Error:
(some script)
Thanks for any ideas.
an error when a database has a password. I need to skip over that one, but
I'm having trouble trapping the error. I have an OnERR statement, but it
throws a Run-time error: 3031. Any suggestions?
Here's a snippet of the code:
Private Sub cmdCompact_Click()
On Error GoTo Err_Log_Error
Dim oldFullPath As String
Dim newFullPath As String
DAO.DBEngine.CompactDatabase newFullPath, oldFullPath
Err_Log_Error:
(some script)
Thanks for any ideas.