SpiritOfLennon
IS-IT--Management
Hi,
I have a series of sql statements some of them within nested ifs. Some of them return recordsets. However if that branch of the if statement doesn't get executed then my recordset doesn't get opened.
At the bottom of my script I have a tidy up where I close all the recordsets. However if a recordset didn't get opened it gives an error. How do I test for this and only close the recordsets that were used?
Regards
I have a series of sql statements some of them within nested ifs. Some of them return recordsets. However if that branch of the if statement doesn't get executed then my recordset doesn't get opened.
At the bottom of my script I have a tidy up where I close all the recordsets. However if a recordset didn't get opened it gives an error. How do I test for this and only close the recordsets that were used?
Regards