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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check whether the recordset is set to Nothing

Status
Not open for further replies.

sohjai

Programmer
Nov 23, 2001
8
HK
Can anyone tell me how to check whether the recordset is set to nothing or not???

Please help me~~~~
 
if (rs is nothing) then ...

where rs is your recordset variable
 
Hi,

Is like balves saied, however for that to work you will need to declare the recordset variable without the "new" keyword.

If you make, for instance, dim rs as NEW Adodb.recordset I think you will not be able to control if the variable is nothing or not.

Sergio Olveira
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top