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

"Destroying a Dynaset"

Status
Not open for further replies.

tigreeuropeo

IS-IT--Management
Oct 2, 2001
30
0
0
ES
How do you "destroy" a Dynaset after creating it?
I want to reuse the dynaset variable, and I don't want to have garbage in this variable at the time of re-creating it.
Thanks in advance
 
Hello

In both ADO and DAO you need to close the dynaset object then you need to set it to nothing i.e.
dynaset.close
set dynaset = nothing

This will then allow you to use the variable again.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top