Error "too many databases open"

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

I have a DB that uses a recordset on one form and fills a table on another
form with a record for each day of the year. It only runs a couple of
months then gives me an error message (Error 3048) telling me I have too
many databases open. I assume it has something to do with the
recordsetclone being opened too many times (once per date.) I also have it
opening and closing two forms over and over. Where am I going wrong?

Thanks!
 
I have a DB that uses a recordset on one form and fills a table on another
form with a record for each day of the year. It only runs a couple of
months then gives me an error message (Error 3048) telling me I have too
many databases open. I assume it has something to do with the
recordsetclone being opened too many times (once per date.) I also have it
opening and closing two forms over and over. Where am I going wrong?

Thanks!

do you close and dereference all your objects?

rst.Close
set rst=Nothing
 
I added the code you suggested with no change. I'm wondering if it is
because of opening and closing forms. I have all my code in form "load" and
I suspect that's my problem. What's a better way to do a loop that needs
to access multiple forms?

Thanks!
 

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

Back
Top