View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Sharad Sharad is offline
external usenet poster
 
Posts: 123
Default ADO Recordset using Excel as a database. Can't free the memory once opperation is over?


Hello Dennis, Try this:

Just after rstX.Close add ' Set rstX = Nothing '
Setting to nothing sholud clear the memory.

Ofcourse between the multiple calls you have to Set it again to valid
RecordSet, and I guess, this must be there already in your code for each
call.

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!