473,608 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cannot open any more databases

When running a report..I get the message "Cannot open any more
databases." Run-time error 3048... Has anyone seen this message
before?
Nov 12 '05 #1
6 11665
If this is Access 97, the solution was to download Service Release 2 from:
http://support.microsoft.com/support...cks/Office/97/

If you have the pack or are running a later version, the problem might be
related to the number of domain aggegate calls you are making, e.g. if the
report's query or controls call DLookup(), DMax(), etc. If that's the case,
post back and we will give you a replacement for DLookup().

It's also important to dereference your object variables in your code. For
example, if you have code that uses CurrentDb and OpenRecordset, ensure you
close the recordset and set your object to nothing. This kind of thing:
rs.Close
Set rs = Nothing
Set db = Nothing

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Debbie Gilbert" <dg******@tasco ncrete.com> wrote in message
news:47******** *************** ***@posting.goo gle.com...
When running a report..I get the message "Cannot open any more
databases." Run-time error 3048... Has anyone seen this message
before?

Nov 12 '05 #2
dg******@tascon crete.com (Debbie Gilbert) wrote in message news:<47******* *************** ****@posting.go ogle.com>...
When running a report..I get the message "Cannot open any more
databases." Run-time error 3048... Has anyone seen this message
before?


Are you opening recordsets or creating variables and not explicitly
destroying them by setting <object>= Nothing after you finish your
code? That would cause you to run out of resources...
Nov 12 '05 #3
I have had the same problem with A2K, in spite of dereferencing everything
and usind ELookup queries etc rather than DLookup. The problem is compounded
by List Boxes, Combo Boxes, & subforms each of which is running an SQL which
gets reported as "Cannot open any more databases."

Phil
"Debbie Gilbert" <dg******@tasco ncrete.com> wrote in message
news:47******** *************** ***@posting.goo gle.com...
When running a report..I get the message "Cannot open any more
databases." Run-time error 3048... Has anyone seen this message
before?

Nov 12 '05 #4
dg******@tascon crete.com (Debbie Gilbert) wrote in
<47************ **************@ posting.google. com>:
When running a report..I get the message "Cannot open any more
databases." Run-time error 3048... Has anyone seen this message
before?


This error message is sometimes erroneous in that it's actually
*table handles* that you're running out of. There's a pretty good
discussion of this problem (interpreting the error message both
literally and as evidence of insufficient table handles) at:

http://dbforums.com/arch/42/2003/6/804659

I don't know that anyone reached a solution in that discussion, but
it raises a whole bunch of issues that you need to consider.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #5
al*********@See Sig.invalid (Allen Browne) wrote in
<3f************ **********@free news.iinet.net. au>:
If this is Access 97, the solution was to download Service Release
2 from:
http://support.microsoft.com/support...cks/Office/97/

If you have the pack or are running a later version, the problem
might be related to the number of domain aggegate calls you are
making, e.g. if the report's query or controls call DLookup(),
DMax(), etc. If that's the case, post back and we will give you a
replacement for DLookup().

It's also important to dereference your object variables in your
code. For example, if you have code that uses CurrentDb and
OpenRecordse t, ensure you close the recordset and set your object
to nothing. This kind of thing:
rs.Close
Set rs = Nothing
Set db = Nothing


According to the discussion in:

http://dbforums.com/arch/42/2003/6/804659

using a recordset variable for a recordsetclone opens implicit
database references. So, this:

Dim rs As DAO.Recordset

Set rs = Me.RecordsetClo ne
rs.FindFirst [whatever]
If Not rs.NoMatch Then Me.Bookmark = rs.Bookmark
Set rs = Nothing

will (in A2K) cause an implicit database reference to be created
that is not released at the end.

The solution is to not use a recordset variable, but to use a With
block:

With Me.RecordsetClo ne
.FindFirst [whatever]
If Not .NoMatch Then Me.Bookmark = .Bookmark
End

That does not have the same problem.

It's also a good lesson -- don't use a Set statement with a
variable if a With block is usable in the same context.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #6
David, thanks for posting the link to this discussion.

The behavior makes no sense to me, but I am still seeing the same result in
Access 2003. It is something that needs further investigation, but does
appear to be an issue with this error.

Appreciated.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"David W. Fenton" <dX********@bwa y.net.invalid> wrote in message
news:94******** *************** ****@24.168.128 .86...
al*********@See Sig.invalid (Allen Browne) wrote in
<3f************ **********@free news.iinet.net. au>:
If this is Access 97, the solution was to download Service Release
2 from:
http://support.microsoft.com/support...cks/Office/97/

If you have the pack or are running a later version, the problem
might be related to the number of domain aggegate calls you are
making, e.g. if the report's query or controls call DLookup(),
DMax(), etc. If that's the case, post back and we will give you a
replacement for DLookup().

It's also important to dereference your object variables in your
code. For example, if you have code that uses CurrentDb and
OpenRecordse t, ensure you close the recordset and set your object
to nothing. This kind of thing:
rs.Close
Set rs = Nothing
Set db = Nothing


According to the discussion in:

http://dbforums.com/arch/42/2003/6/804659

using a recordset variable for a recordsetclone opens implicit
database references. So, this:

Dim rs As DAO.Recordset

Set rs = Me.RecordsetClo ne
rs.FindFirst [whatever]
If Not rs.NoMatch Then Me.Bookmark = rs.Bookmark
Set rs = Nothing

will (in A2K) cause an implicit database reference to be created
that is not released at the end.

The solution is to not use a recordset variable, but to use a With
block:

With Me.RecordsetClo ne
.FindFirst [whatever]
If Not .NoMatch Then Me.Bookmark = .Bookmark
End

That does not have the same problem.

It's also a good lesson -- don't use a Set statement with a
variable if a With block is usable in the same context.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
5460
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
4
3284
by: Koen | last post by:
Hi all, At work I created a database which is really helpful. The database is used by approx 15 users. Everything worked great, until I added some 'scoreboard' forms and reports. I get the "Cannot open any more databases" error. The 'scoreboard' form show a matrix of 6 columns, 7 rows. Each cell is calculated separate by (what I call complex) queries.
46
5969
by: Steve | last post by:
Access97 Database The database is split into a frontend and backend and not connected to any other database. The database has an unbound report with 15 subreports. Some of the subreports include Excel charts in unbound object frames. When I add 3 additional subreports, I get the error message that Access can't open any more databases. Can anyone suggest what may be causing the error message. Thanks!
15
2446
by: Dave | last post by:
Has anyone encountered the error message "Can not open any more databases" and what did you do to solve it? Thanks, Dave
6
18802
by: ultraton | last post by:
While trying to print a report from Access the user receives the following error: Cannot open any more databases. Okay Help Does anyone have any ideas about this behavior? Thank you very much.
6
6937
by: ABC | last post by:
I write the code as: <asp:LinkButton ID="LinkButton2" Text='<%# Eval("Title") %>' PostBackUrl='file://<%# Eval("path") %>' runat="server"></asp:LinkButton> But It don't work to download or open file when I clicked. How should I do?
0
1633
by: Holly Cross | last post by:
I have a report that uses several subreports. The report looks fine in print preview, but when I send it to the printer, I keep getting this message "Cannot open any more databases." This happened when I add the last subreport. Is there a limit on the amount of subreports you can call from a report? If so, any work-arounds? There is a little code behind the report, but nothing using recordsets.
0
1497
by: bhipwell via AccessMonster.com | last post by:
I am getting the 3048 error: "Cannot open any more databases." I have a couple forms loaded with tabs covered in combo boxes, list boxes, etc. The error occurs when running a form with 12 subforms on it. The form and subforms all reference the same table (they are separate forms so I can use the visibilty function to move data vertically when necessary). This fact I think elimiates Table IDs being created due to too many queries or...
2
7161
n8kindt
by: n8kindt | last post by:
i'm stuck. i'm using access 2007 on a windows vista machine (i've tried running on xp too, though--same result) and this is the error i keep getting whenever i try running my main query: Cannot open any more databases. (Error 3048) You have reached the limit on the number of databases that can be opened at one time. Close one or more databases and try the operation again. this suggestion is not very useful to me. i have one backend...
0
8057
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7998
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6813
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6010
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2472
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1580
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1327
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.