Solved

Access 97 Error 3048

Posted on 2002-04-16
4
206 Views
Last Modified: 2008-03-17
I get Error 3048 ("Can't open any more databases")after perfoming multiple requeries on a form in Access 97. The form is based on a query  from a linked table. Requery works a number of times (approx 20) before giving this message.Can anyone tell me why, and what I can do to fix it?

Thanks,
lwoessner
0
Comment
Question by:lwoessner
  • 2
4 Comments
 
LVL 1

Expert Comment

by:andrejaa
ID: 6947144
Hi,
try to use RecordSetClone method for performing multiple
requeries on form.


0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 75 total points
ID: 6947627
lwoessner,

  It's probably not the requery itself, but something your doing in code in conjuntion with that that is not cleaning up after itself.  Do you have code attached to this form or call procedures?

  If so, check over those routines and make sure your closing anything you open and set all object variables to nothing.  i.e.

  rstMine.Close
  Set rstMine = Nothing

 Access should clean these up when they go out of scope, but it doesn't always do that.  The error message your receiving stems from the fact that Access has an interal limit on the number of open table references that it can address at any one time.

Jim.
0
 
LVL 57
ID: 6947646
Just noticed that it was databases, not tables.  What I said still applies in regards to the code however.  When you open an ADO recordset, how are you doing it?

Jim.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 7103540
for lwoessner

No comment has been added for the last two months.
So it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now