You may indeed be out of memory if you are using A2000 or newer. In these versions, Microsoft changed the way it loads code modules (essentially to improve response time). In A97, it loaded only the modules needed. Now, it loads them ALL and they are memory hungry. You need to do some housekeeping. Make sure all your Object variables like
Dim db as DAO.Database
Dim rst as DAO.Recordset
are closed
Set rst = Nothing
Set db = Nothing
That will help. Also, the decompile will help.
Paul