I got a problem:
I want to connect to a data bank.
If the connection fails or I get an error
I use this:
Now when this hapens and he jumps to close_databank then I get a new error:
Run-Time Error '3704':
Operation is not allowed when the object is closed
How can I say when error 3704 don't close connection
Or check if connection if open if true then close else nothing ?
I want to connect to a data bank.
If the connection fails or I get an error
I use this:
Code:
On error goto close_databank
close_databank:
close connection
Now when this hapens and he jumps to close_databank then I get a new error:
Run-Time Error '3704':
Operation is not allowed when the object is closed
How can I say when error 3704 don't close connection
Or check if connection if open if true then close else nothing ?