Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check an adodb RS status 1

Status
Not open for further replies.

bzac

Programmer
Dec 20, 2000
55
US
Is there any way to check wheather an ADODB.RecordSet Open or Close, like "connection1.status=0" ?

Here I have one problem:- When I try to close the recordset in my form.terminate event , shows error.
 
Can you just set the rs variable to Nothing
Code:
Set RS = Nothing
i dont think this will cause an error regardless of the state of the recordset. Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Hi Ruairi,

Is it OK that "Set to nothing" without checking wheather the recordset is open or close or not created at all.

Thank you vary much.
 
yeah, it's fine and shouldn't cause any errors to be raised. You should really be setting any objects you use to Nothing before exiting anyway. Ruairi

Could your manufacturing facility benefit from real time process monitoring? Would you like your employees to be able to see up to the minute goal and actual production?
For innovative, low cost solutions check out my website.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top