Clean Up After DAO "Connection"?

M

MDW

I'm replacing some ADO code with DAO code (and enjoying a marked increase in
speed). However, in DAO I use

Set objDAO-RS = CurrentDB.Execute(strSQL)

whereas in ADO I used to use

Set objADO-Conn = CurrentProject.Connection
Set objADO-RS = objADO-Conn.Execute(strSQL)

To release the resources in ADO, I'd close and set to Nothing both the
recordset and connection objects. However, in DAO there is no connection
object, per se. Is there anything I need to do other than just kill the
recordset?

Access 2000.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top