?
Solved

Deploy as ACCDE

Posted on 2012-03-09
10
Medium Priority
?
694 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 900 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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 85
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 48

Expert Comment

by:Dale Fye
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

771 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