×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Count current database connections?

Count current database connections?

Count current database connections?

(OP)
Hi all - have a complex app throwing error 3048 (too many databases) and I'm looking to count the database connections but haven't been able to find a way. The connections to count include all form controls (combos, listboxes and forms) and I seem to remember a long distant thread somewhere but can't locate it.

Architecture is a split front/backend database with 15 tables, some use of pivotcharts for dashboards (2010 Access version), heavy use of ListViews to load and close recordsets, and 3048 thrown with a form that's opened in a multiple instance scenario.

So - how to count current connections back to the backend?

Brad Stevens

RE: Count current database connections?

I would try to limit the number of controls with Row Sources particularly in reports.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

RE: Count current database connections?

(OP)
Thanks Duane - totally agree and I've got quite a few directions to go, but I want to measure the impact of changes by measuring the connection count.

Any ideas there?

Brad Stevens

RE: Count current database connections?

No idea on how to determine the connection count. I have been paying attention to Access groups for 20+ years and haven't seen any way to determine the number of connections.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

RE: Count current database connections?

(OP)
Yep, pretty confident you'd know how if it existed Duane!
Thanks for your input.

Brad Stevens

RE: Count current database connections?

This is normally a complexity issue. Culprit is often multiple subforms, because you can quickly multiply the connections. It could also be a loop creating multiple module level recordsets not going out of scope. My understanding is 2048 connections.
1) Compartmentalize your design. I see too many bad databases where people want to do everything from a single form; search, add, modify all on the same form. Nothing worse then nested subforms IMO. Normally my search forms are seperate from my edit forms and same with add.
2)If you have lots of tabbed or hidden subforms, consider a single subform control where you load the source object when you tab or make visible.
3) If you have rarely used controls like combos/listboxes then load them only on entry

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close