I have an application.
When it starts, the macro Autoexec is executed.
Autoexec calls the function hideStartUp() in a module.
I have an issue with error handling.
Code:
Function hideStartUp()
On Error GoTo errorHandler
...............
...............
...............
Exit Function
errorHandler:
If Err.Number <> 0 Then MsgBox "deleteRecordOfSubForm " & Error & " " & Err.Number
Resume Next
End Function
When an error happens, it enters in an endless loop: a message box that pops up again and again after closing it.
The only way to close Access is through task Manager.
What is wrong with the code?