We help IT Professionals succeed at work.

How to reduce Table Handles in Access forms

shannonbirt
shannonbirt asked
on
400 Views
Last Modified: 2013-11-28
I have been having issues with 8 or so forms open concurrently and running into error 3048 in Access 2003.

I have been doing some research into error 3048 in access.  Access cannot open any more databases and have found out about the 2048 concurrently open table handle limit.
I'm also aware that having a seperate FE and BE split doubles or triples the amount of open handles required, and do have a split FE and BE. I have had some luck in reducing this error message by tidying up code and closing any open references and by using closing and dereferencing objects.

One thing which i havn't been able to find out is if a combo box which has a query / table for its rowsource , does it require a seperate table connections / handles for each record the combo box is shown for ? or only once for the form the combo box is on ? If i knew this then i would know if its worthwhile to reduce the amount of combo boxes used.

As another part to this question is, as i undestand there is no way to accurately measure how many table handles are been used at any one time , short of duplicating the form and estimating that way.  Is there a better way to monitor how many table handles have been used ?

Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
reduce the combo boxes open at a time...

you can test this by removing combo boxes until you don't get the error.
(do this in a back up copy)

if you are opening recordset, close them when not needed.

rs.close
set rs=nothing
CERTIFIED EXPERT
Top Expert 2016

Commented:
you also need to consider your forms with several subforms.
domain aggregate functions in your queries are executed for every records.

Author

Commented:
Capricorn I have everything closed and dereferenced in my code and i do not use domain aggregate functions any where. I'm trying to figure out what is expensive in terms of Table Handles and i know combo boxes can be expensive especially if they have joins etc in their queries. But if they effectively open a seperate connection for every record been viewed in a form , then they would be consuming a whole lot more table handles, than just once per form.

Obviously using less combo boxes is the aim , but i am down to the really necessary ones as they are required for user data entry to lookup other columns etc.
President / Owner
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
shannonbirt,

<JDettman>
<I've always been told that it is one table reference per field that you are working with.>
...If this is true, then I just thought of something else.
Make sure your comboboxes have no more fields than is absolutely necessary. (Whether they are hidden or not)
I have seem people populate comboboxes with every field in a table, but thought they were OK, because they hid most of them.

HTH as well

Jeff Coachman

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.