Out of Memory

  • Thread starter Thread starter rssmith@up.com
  • Start date Start date
R

rssmith@up.com

Guest
What are some reasons why ACCESS 97 would display "Out of Memory" errors when I run my macros and try to open a linked table?
 
If you're using recordsets and db connections, are you closing them at the end of your macros...
 
Out of Memory - Answer to Question

alexbri said:
If you're using recordsets and db connections, are you closing them at the end of your macros...

No, what do you recommend?
 
If you are using code like:

Code:
Dim db As DAO.Database
Dim rs As DAO.Recordset

or

Dim cn As ADODB.Connection
Dim rs As New ADODB.Recordset


then remember to set the object variable defined to nothing once its usage is complete

i.e.
Code:
Set db = Nothing
 

Users who are viewing this thread

Back
Top Bottom