AccessBlog.net

News, links, downloads, tips and tricks on Microsoft Access and related

About Me Search
Alex
Name:Alex Dybenko

Location:Moscow, Russia

Saturday, November 15, 2014

Security Update MS14-066 causes major performance problems in Microsoft Access / SQL Server applications

 

Update: Switching to "SQL Server Native Client 10.0" ODBC driver helps to avoid performance issues, looks like update has effect on default "SQL Server" driver only

Labels: ,

Monday, June 23, 2014

A better ZoomBox

A better ZoomBox - the improved version of Access Shift+F2 zoom feature by Tom van Stiphout, Access MVP.

Labels:

Thursday, May 22, 2014

Access NetView - Extensible Control for Microsoft Access

NetView control – there are 2 reasons to look at it. First of all this is an Access native control, which you can use in your application, if you need to show multi-dimensional charts, bound to recordsets, or using it drag capabilities. And second reason – learn it source code, what could be useful for creating your own control or applications. Check it out!

Labels: ,

Friday, May 16, 2014

Access Spell Checker

MS Access™ 97 / 2000 / 2007 Spell Checker / Dictionary Tool with Source Code is built completely in Access, you can easy distribute it with your application.

Labels:

Wednesday, April 23, 2014

Access 2013 SP1 Runtime

The Microsoft Access 2013 Runtime enables you to distribute Access 2013 applications to users who do not have the full version of Access 2013 installed on their computers. Now version 2013 SP1 is available for download

Labels: ,

Wednesday, April 16, 2014

How to detect, if you are running 64-bit Office

New data type LongPtr is Long integer on 32-bit systems and LongLong integer on 64-bit systems, by checking it VarType you can find out on what environments you run your VBA code:

Function Is64BitOffice() As Boolean
    Dim lp As LongPtr
    Is64BitOffice = Not (VarType(lp) = vbLong)
End Function

This trick I learned from fellow MVP Brent Spaulding

Labels: , ,

Tuesday, April 01, 2014

How many database connections are still available in an Access database

Finally I got a reply from Ben Sacherich, who mentioned, that he "have a pop-up form that tells you how many database connections are still available and how many have been used", responding to a post  One more source for Can’t open any more databases.
Thanks Ben!


I created a form that will tell you how many “database connections” are still available in an Access database.  This is useful for debugging the dreaded 'Cannot open any more tables' and 'Cannot open any more databases' errors.

BS1

Use this dialog to monitor the number of open databases/tables that can be created before the error will show up.

Note that every reference to a local table or query object uses 1 connection.   A reference to a linked table uses 2 connections.  Review the queries you are calling from form, combo box, and listview objects and remove extraneous references to tables and sub-queries to reduce overhead.

I added this form to an Access Add-in I had already developed so it’s available to any database. You can do the same, or just add this one form to your existing database.  It opens as a dialog so you can position it on another monitor.

BS2

How does it work?   Every time you press the Requery button, it runs a recursive function that opens one database connection, increments a counter, and then calls itself.   When it finally gets an error because it has opened all of the connections, it closes all the connections it created and returns the maximum number from the counter. 

I feel that my solution is a big help for this error as it’s not very understood.   I read a lot about this online and some people think Access/Jet has around 2,000 TableID’s but that number doesn’t match up with what my form reports.  The numbers reported by my form align perfectly with the error.   It may be counting something different than TableID’s but it provides an accurate gauge to measure the amount of connections being used as you open new objects.

Download solution

Ben Sacherich, Pittsburgh, PA

Labels: ,