A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Too Many Open Databases



 
 
Thread Tools Display Modes
  #1  
Old January 21st, 2005, 05:37 AM
Ian Footrot
external usenet poster
 
Posts: n/a
Default Too Many Open Databases

I am running a large Access DB (Access Backend and Access Front end using
terminal services)

Am getting a lot of errors on "Too many dataases Open" in the system.

I am trying to work out if there is a system setting that controls how many
databases are allowed to be open in Access ?

(Normally get this after openning more then 4 to 6 active windows (With sub
forms))
  #2  
Old January 21st, 2005, 06:44 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

This is a hard-wired limit. In Access 97, it was increased by one of the
service packs, and (from memory) is 2048 since then.

The worst offenders are the domain aggregate functions - DLookup(),
DCount(), DMax(), etc - when you use them in a query, so that they have to
run for every row. If possible replace them with a join, a subquery, or at
least code that cleans up after itself such as:
http://members.iinet.net.au/~allenbrowne/ser-42.html

Next offender is the combo box. If you have heaps of these open, each one
has its own RowSource, and contributes to the issue. If you have many combos
with the same rowsource (e.g. a rostering app where there are combos
everywhere for selecting a staff member for the timeslot), you may be able
to work around that by changing the RowSourceType to a callback function
that supplies the data from a static array.

After that, every subform requires its own RecordSource, so if you have
tabbed controls with a different subform on each page, you could possiby
work around that by placing a single subform directly on the main form (not
on a page of the tab control), and changing the SourceObject of the subform
in the Change event of the tab control. A side-effect of doing this is that
Access is likely to reassign the LinkMasterFields/LinkChildFields on a whim,
so you may need to set these also after changing the SourceObject.

Access also opens a separate database connection for each form where you
refer to RecordsetClone.

If that doesn't give you some good leads, you may be able to find out what's
being used by looping through the Databases collection of each of the
Workspaces of dbEngine after the software has been used for a while.

--
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.

"Ian Footrot" Ian wrote in message
...
I am running a large Access DB (Access Backend and Access Front end using
terminal services)

Am getting a lot of errors on "Too many dataases Open" in the system.

I am trying to work out if there is a system setting that controls how
many
databases are allowed to be open in Access ?

(Normally get this after openning more then 4 to 6 active windows (With
sub
forms))



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Recovery and Open & Repair in WD 2003? UserRAW1975 General Discussion 1 December 22nd, 2004 03:00 AM
Can't open 2 databases at once Clark General Discussion 1 December 20th, 2004 02:28 AM
Sudden database corruption of multiple databases. Karen General Discussion 4 December 15th, 2004 07:35 AM
3048 too many databases open RJohnson General Discussion 1 November 19th, 2004 12:34 AM
Can not open any more databases Jeff C. General Discussion 2 September 13th, 2004 10:20 PM


All times are GMT +1. The time now is 07:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.