Too Many TableIDs to make an MDE

SQLearner

New member
Local time
Yesterday, 22:58
Joined
May 15, 2007
Messages
1
Hi there,

Being an Access newbie and all I knew nothing about the maximum number of TableIDs being 2048...really I just found out about TableIDs when the error message popped up. :o
Is there a way around this, short of revamping the entire database? :(
Anything light anyone can shed would be awesome.
Thanks all.

Cheers,

SQLearner
 
'69 Camaro contributed this on another forum:
Error #3048 is usually caused by your database application trying to handle
too many tables at the same time. There are 2048 "table handles," or
TableID's, available for Jet 3.51 and 4.0 (1024 TableID's for Jet 3.0 and
3.5) that Access requires when dealing with each table or linked table.

TableID's are used for the following:

- Tables
- Queries
- Bound forms and reports
- Modules for forms and reports
- Combo boxes and list boxes whose row source is a table or query
- Data Access Objects (DAO) Recordsets in code
- Domain functions, such as DLookup( ), DCount( ), et cetera.

If this error is caused by the application using too many TableID's, then
ensure that every Recordset used in code is explicitly closed and the
Recordset variable set to Nothing before the variable goes out of scope. If
this is occurring only after the report is opened multiple times, then
you'll likely fix the problem by explicitly closing and setting objects to
Nothing in at least one code module.

If this isn't enough to prevent the error message from recurring, then the
alternatives are to reduce the number of combo boxes that meet the above
listed criteria, simplify complex queries, or to unlink some of the tables
(linked tables require twice as many TableID's) and place these tables in
the database file.

Reducing the number of any of the items on the list above will help reduce
the number of TableID's in use. The important thing to remember is the
total number of TableID's in use at the same time needs to be prevented from
exceeding the limit.

This error has also been reported to be caused by implicitly referring to
the value of a checkbox in an If...Then block statement. If this is the
case, then the solution is to explictly refer to this value, instead.

Hope this helps.
 
I ran into this error as well. Turned out for me that it was simply a coding error that I had in my VBA code. I had code that I was working on and was not completed. Click on Database Tools and open Visual Basic and compile your database from the Debug menu to ensure that your code can even be compiled. The MDE compile error stating too many TableId's is a very confusing message and can have you running in circles :banghead: when it could be a simple 'Type Mismatch' or 'Block If / End If'
 

Users who are viewing this thread

Back
Top Bottom