K
Kim
I have VBA code that has error handling. When the code is finished, my error
handling gives me andd error number 0. The process runs fine and there are
no errors. Any ideas about the error number 0?
Code:
Public Sub ExpUpdateDB(Working As String, Final As String)
On Error GoTo Err_ExpUpdateDB
DBEngine.CompactDatabase Working, "C:\temp.mdb"
Kill Working
FileCopy "C:\Temp.mdb", Working
FileCopy "C:\Temp.mdb", Final
Kill "C:\Temp.mdb"
Err_ExpUpdateDB:
MsgBox "Error Exporting Update DB: " & Final & ". Error Number: " &
Err.Number & " Error Description: " & Err.Description _
, , "Error"
handling gives me andd error number 0. The process runs fine and there are
no errors. Any ideas about the error number 0?
Code:
Public Sub ExpUpdateDB(Working As String, Final As String)
On Error GoTo Err_ExpUpdateDB
DBEngine.CompactDatabase Working, "C:\temp.mdb"
Kill Working
FileCopy "C:\Temp.mdb", Working
FileCopy "C:\Temp.mdb", Final
Kill "C:\Temp.mdb"
Err_ExpUpdateDB:
MsgBox "Error Exporting Update DB: " & Final & ". Error Number: " &
Err.Number & " Error Description: " & Err.Description _
, , "Error"