When I enter into debug mode in Access 97, the program will halt on any error, even if that error is occurring after On Error Resume Next
.
I have a function that tests if an element key
is in a Collection Col
using
On Error Resume Next
var = Col.Item(key) 'Here the error is raised, and makes debug mode useless
...
InConnection = Not (Err.Number = 5)
This works well in production, but it makes running the program in debug mode useless.
Is there a way to avoid that the program halts on certain errors in debug mode ?
As far as I could search there is no way to test if a key exist in a collection in Access 97, other than try and catch the error using the above method.