Help!

Create .accde file get error

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Setup/Configuration RSS
Next:  Two Column Report  
Author Message
Richo
External


Since: Jul 29, 2009
Posts: 2



PostPosted: Wed Jul 29, 2009 5:46 am    Post subject: Create .accde file get error
Archived from groups: microsoft>public>access>setupconfig (more info?)

When I click on the "Create ACCDE file" button I get the following error
(there a page to change the name, then click ok)

Microsoft office Access was unable to create the .accde, .mde or .ade file

with a SHOW button was says
This error is usually associated with compiling a large database into an MDE
file. Because of the method used to compile the database, a considerable
number of TableID references are created for each table. The Access database
engine can only create a maximum of 2048 open TableIDs at one time.
Exporting a database as an MDE potentially can exceed this limit if the
database has a large number of objects (table, macro, form, report, etc).
There is no accurate method to estimate the number of TableIDs the Access
database engine uses during the process of compiling a database as an MDE.
However, each VBA module and each form uses one TableID, as a result, if the
database has 500 forms, and each form's HasModule property is set to Yes, as
many as 1,000 TableIDs are used.

Do you know how to get around this error?
What I am trying to do is create the DB so a user can use it! How do I do
that and creating an .accde file is this the right way to do it??

Thanks
--
Regards

Richo
Back to top
Tony Toews [MVP]
External


Since: Jan 30, 2007
Posts: 936



PostPosted: Wed Jul 29, 2009 3:07 pm    Post subject: Re: Create .accde file get error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Richo <Richo.TakeThisOut@discussions.microsoft.com> wrote:

>This error is usually associated with compiling a large database into an MDE
>file. Because of the method used to compile the database, a considerable
>number of TableID references are created for each table. The Access database
>engine can only create a maximum of 2048 open TableIDs at one time.
>Exporting a database as an MDE potentially can exceed this limit if the
>database has a large number of objects (table, macro, form, report, etc).
>There is no accurate method to estimate the number of TableIDs the Access
>database engine uses during the process of compiling a database as an MDE.
>However, each VBA module and each form uses one TableID, as a result, if the
>database has 500 forms, and each form's HasModule property is set to Yes, as
>many as 1,000 TableIDs are used.
>
>Do you know how to get around this error?

That's a very misleading message. There is almost certainly a VBA
code error. Compile your project to locate any such errors. Ctrl+G
to get to the Immediate Window then Debug >> Compile.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Granite Fleet Manager http://www.granitefleet.com/
Back to top
Richo
External


Since: Jul 29, 2009
Posts: 2



PostPosted: Fri Jul 31, 2009 1:11 am    Post subject: Re: Create .accde file get error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for that, I have lots of issues with the 2007 version that I am
working on. I nned tp sort out before I compile.
Can you tell me how to compile a 2003 version so I can give it to another
user and use i.e when they click on it the welcome page is displayed.
It has been a while since I used Access and Access 2007 has changed.

That would be great if you could help to compile and get using what I have
created.(2003 version)

--
Regards

Richo


"Tony Toews [MVP]" wrote:

> Richo <Richo.TakeThisOut@discussions.microsoft.com> wrote:
>
> >This error is usually associated with compiling a large database into an MDE
> >file. Because of the method used to compile the database, a considerable
> >number of TableID references are created for each table. The Access database
> >engine can only create a maximum of 2048 open TableIDs at one time.
> >Exporting a database as an MDE potentially can exceed this limit if the
> >database has a large number of objects (table, macro, form, report, etc).
> >There is no accurate method to estimate the number of TableIDs the Access
> >database engine uses during the process of compiling a database as an MDE.
> >However, each VBA module and each form uses one TableID, as a result, if the
> >database has 500 forms, and each form's HasModule property is set to Yes, as
> >many as 1,000 TableIDs are used.
> >
> >Do you know how to get around this error?
>
> That's a very misleading message. There is almost certainly a VBA
> code error. Compile your project to locate any such errors. Ctrl+G
> to get to the Immediate Window then Debug >> Compile.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
> Granite Fleet Manager http://www.granitefleet.com/
>
Back to top
alpe



Joined: Nov 18, 2009
Posts: 1



PostPosted: Wed Nov 18, 2009 8:45 am    Post subject: Re: Create .accde file get error [Login to view extended thread Info.]

Tony Toews [MVP] wrote:
Richo <Richo.TakeThisOut@discussions.microsoft.com> wrote:

>This error is usually associated with compiling a large database into an MDE
>file. Because of the method used to compile the database, a considerable
>number of TableID references are created for each table. The Access database
>engine can only create a maximum of 2048 open TableIDs at one time.
>Exporting a database as an MDE potentially can exceed this limit if the
>database has a large number of objects (table, macro, form, report, etc).
>There is no accurate method to estimate the number of TableIDs the Access
>database engine uses during the process of compiling a database as an MDE.
>However, each VBA module and each form uses one TableID, as a result, if the
>database has 500 forms, and each form's HasModule property is set to Yes, as
>many as 1,000 TableIDs are used.
>
>Do you know how to get around this error?

That's a very misleading message. There is almost certainly a VBA
code error. Compile your project to locate any such errors. Ctrl+G
to get to the Immediate Window then Debug >> Compile.

Tony




I know it's a misleading message, but I have the same problem and when I compile I get the error "Compile Error <Out of memory>" and the place is not the same if I comment out some code.
It's a very large Access program with about 980 modules, forms and reports.
The form and reports are forms with code. There are lots of form/reports without code.
I know there is a limit of 1000 code modules incl forms and reports, but with 980 we are under that limit.
I have tried to import it in a new Access database, but the problem is still there.

We are now starting a refactoring process and we are also moving some code to DOT NET where we use Managed add in to communicate between Access and DOT NET, but it take time to reduce the code in Access.

When I comment out some code it works fine again, but is there anybody who can tell me, what I can do to get our projekt to compile again whithout remove code and does anybody know if there is some other limit, which am im not aware of?
If it's a limit of public procedure, Const and variables, can anybode tell me what the limit is?


Alex Pedersen
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Setup/Configuration All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum