473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Form SQL or Query Limit? Error 3276, Invalid database object reference

Hello,

In my database, I'm having an issue where if a user opens too many forms with massive numbers of SQL statements and table references, they'll get error 3276 - Invalid database object reference whenever they try to open another form or if any VBA code executes CurrentDb.OpenRecordset. This message happens with any table or query that would otherwise open without issues.

Because of the limit, a user can only have 1-2 complex forms open at a time before the error message loop happens and the user has to restart the database to get it to stop.

I tried to find a fix to this bug but to no avail, and for now simply enforce a form limit under the Form_Load() subroutine of each of these big forms. I found this article:
http://www.databasedev.co.uk/access_specifications.html
But the only thing I could find in terms of limits I may be reaching was Number of tables in a query = 32.

My question is if there is anything I can do to allow users to have more than 2 of these complex forms open, or if this is simply an MS Access limitation I have to live with?

Thanks in advance.
Jul 15 '11 #1

✓ answered by Rabbit

It's an Access limitation. But if you're hitting these limits with just 2 forms open, you could probably redesign and optimize them a lot more than they are currently.

I honestly can't see a need for 25 tables in one query. Practically, it's gotta be unwieldy to use.

2 4727
Rabbit
12,516 Expert Mod 8TB
It's an Access limitation. But if you're hitting these limits with just 2 forms open, you could probably redesign and optimize them a lot more than they are currently.

I honestly can't see a need for 25 tables in one query. Practically, it's gotta be unwieldy to use.
Jul 15 '11 #2
Unfortunately I can't reduce the size of these forms any more. It isn't one query that has 25 tables, but each query has several queries nested inside of it, so the total tables referenced could be 10 or so per query. With 3 forms open that means "Invalid Database Object Reference" which is very limiting and annoying. These queries all use type 2 or 3 integer based links to autonumber fields, no string links, so nothing strikes me as unusual here.

The company I work at is an engineering firm and they send these large datasheets to vendors all the time. So naturally, there are going to be a ton of data links in these datasheets since combo boxes should reference tables, subforms should be used for common sections, separate equipment lists need to be referenced, etc. All the fundamentals are being done, and I even did "Analyze Performance" in the [Database Tools] tab in the ribbon and got it in tip top shape (minus the # of controls which I have little to no control over).

It sounds like this is something I'll just have to live with with MS Access :(
Aug 9 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
0
by: Raji | last post by:
BlankI got the following error when I was debugging my program. Would someone know what does it mean? Operation failed.Error:Object reference not set to an instance of an object. thanks in...
7
by: kon george | last post by:
Can somebody assist. I build this code on a dev laptop and copied across the entire code to a Windows 2003 server with 1.1 framework. It is basic ASP.NE T that uses web service for SQL Server...
13
by: Jeff Molby | last post by:
I'm quite experienced with ASP.Net, so I know the language pretty well, but this is my first significant windows app in VB.Net, so I haven't encountered many of the quirks yet. I'm using VB 2003. ...
1
by: DaveC | last post by:
I have a simple one form VB.NET desktop app, that does a little threading like so mThread = New System.Threading.Thread(AddressOf DoSearch) mThread.Start() mThread has been decleared with the...
2
by: louie.hutzel | last post by:
This JUST started happening, I don't remember changing any code: When I click the submit button on my form, stuff is supposed to happen (which it does correctly) and a result message is posted back...
1
by: transpac80 | last post by:
Problem with SQLPassthrough in Access 2007 using DAO I have this piece of VBA code from inside Access to retrieve data from external database (SQL or Oracle) sConn =...
4
by: yogarajan | last post by:
hi i had developed pop3 Account mail view in my web page but i got error in (System.NullReference Exception: Object reference not set) NetStrm.Write(szData, 0, szData.Length); - this line ...
14
by: asmx126453 | last post by:
hey guys hope anyone knows what this error means i get the error when i push a button to add values in a SQL database the code were the error point to is this #region filling in txtfields from...
8
by: mrcw | last post by:
Hi I've added a textbox called tbAccel0 to a form. It shows up on the form with the correct name, but when I look at the code a red squigly line appears under tbAccel0 and an error appears in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.