Solved

Deploy as ACCDE

Posted on 2012-03-09
10
679 Views
Last Modified: 2012-03-10
I have an accdb database. I want to deploy it as an executable that will run without any installtion of MS Access on the client's PCs. Each time I run the Make ACCDE wiz I get MS Access was unable to create the accde... The help says it can create a mazimum of 2048 TableIDs. My database is small with 9 tables, 27 queries, 9 forms, no modules but underlying modules for all forms.
0
Comment
Question by:rawilken
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 300 total points
ID: 37702566
0
 
LVL 75
ID: 37702576
Just noting first that ... ACCDE's are not 'executable' per se.

Meanwhile ... Just to be *sure* your ACCDB is 'clean' before creating the MDE, run this procedure ... we may get lucky:


Open the VBA Editor and from the menu ...Tools>>References ....
If you see any listed as **Missing: <reference name>, including the asterisks and the word Missing, the
you need to fix that first.

Then, follow this procedure:

****
0) **Backup your MDB BEFORE running this procedure**
****
1) Compact and Repair the MDB, as follows:
Hold down the Shift key and open the MDB, then from the menu >>Tools>>Database Utilities>>Compact and Repair ...
Close the mdb after the Compact & Repair.
2) Execute the Decompile (See example syntax below) >> after which, your database will reopen.
3) Close the mdb
4) Open the mdb and do a Compact and Repair (#1 above).
5) Close the mdb.
6) Open the mdb:
    a) Right click over a 'blank' area of the database window (container) and select Visual Basic Editor. A new window will open with the title 'Microsoft Visual Basic' ... followed by then name of your MDB.
    b) From the VBA Editor Menu at the top of the window:
       >>Debug>>Compile
        Note ... after the word Compile ...you will see the name of your 'Project' - just an fyi.

7) Close the mdb
8) Compact and Repair one more time.

*** Executing the DeCompile **EXAMPLE**:
Here is an **example** of the command line syntax  (be SURE to adjust your path and file name accordingly) before executing the decompile:

Run this from Start>>Run, enter the following command line - **all on one line** - it may appear like two lines here in the post:
Also, the double quotes are required.

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile "C:\Access2003Clients\YourMdbNameHERE.mdb"

For more detail on the Decompile subject ... visit the Master on the subject (and other great stuff) Michael Kaplan:

http://www.trigeminal.com/usenet/usenet004.asp?1033

AND ...
Once you get familiar with the Decompile idea (and ALWAYS make a BACKUP first!) ... you can add both Decompile and Compact/Repair to the Right Click menus in Windows Explorer, which I use multiple times daily:

Getting the Decompile and Compact context menu options
http://access.mvps.org/access/modules/mdl0039.htm

mx
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37702583
What version of Access are you running?
Note that you cannot create an accde file from an access 2003 format DB.

In other words, if you want to create an accde file, the database must be in the Access 2007 format


It may also be that you had a lot of tables over the life of the DB.
Have you run the Compact /repair utility lately?
Also try creating a new db and importing all the objects.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

Author Comment

by:rawilken
ID: 37702891
I am using MS Access 2010 and want a deployable solution that will not need an installation of MS Access to run.
0
 
LVL 75
ID: 37702903
0
 

Author Comment

by:rawilken
ID: 37703111
I have the runtime version. What I do not have is the knowledge on what to do to create an application that will take the runtime version and my database and deploy this as an executable program.
0
 
LVL 75
ID: 37703151
There is no such thing as a Executable Access program per se.  You will need an installation program that, among other things ... installs the Runtime module and your related db files, etc.

Take a look at these:

Free  Installers:

http://www.thefreecountry.com/programming/setup.shtml

mx
0
 
LVL 84
ID: 37704742
To summarize the posting above, in order to deploy your database to end users who do not have Access, you must do these things:

1) Compile the database to the ACCDE format. MX has given you the steps necessary to do that successfully

2) Obtain the Access 2010 Runtime

3) Use an installer of some sort to deploy both the 2010 Runtime and your compiled .accde file.

In a nutshell, those are the steps needed to deploy your database to another machine that does not have Access installed.

However, understand that if that machine DOES have Access installed (any other version), then deploying your db with the Runtime can wreak havoc on the machine. Many who must deploy in this environment use Sagekey to build their deployments (www.sagekey.com). It's pricey, but it also insures that you don't muck up the end user machine.

There are also several differences when dealing with a Runtime version of Access vs a Retail version:

http://msdn.microsoft.com/en-us/library/cc136539(v=office.12).aspx

The article is for 2007 but everything still applies to 2010.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 37704816
MX mentions this as Point #6B of his first post, but it is buried in there, so I thought I would reiterate.

If your system will not create the mde for you, then you likely have compile errors.
Open the VBA window, then select the Debug -> Compile option from the menu.

Once you have fixed all of the compile errors, you should be able to create the accde file, but I would follow MX's instructions to the letter!
0
 
LVL 75
ID: 37705277
Seems like MX mention pretty much everything ... a whole bunch of stuff, including steps 1,2 3 mentioned by LSM.  Wow!

Glad I could be so darn helpful !

mx
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question