|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
DAO and ADO
Hi,
Can anyone help me understand how you close a recordset or connection? If you close a recordset do you have to close the connection also? After a routine I am doing a rs.close and keep getting a message that the "operation is not allowed when object is closed". I don't understand why it is already closed. Thank you. |
|
#2
|
|||
|
|||
|
Yes, rs.close is right, however here's a tip to check whether a recordset is closed or not:
if rs.state = 1 then 'Close it rs.close else ' It's already closed, do nothing end if |
|
#3
|
|||
|
|||
|
Thank you. Forgive my silly question but what happens if a recordset or connection is not closed in a program. Is the memory ever released?
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > DAO and ADO |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|