Question

Ways to convert a .mdb to a .exe

Asked by: xhenkaii

Hello all,

I have a database in Access .mdb and would like to convert it to a .exe

1 possible way would be to use Office Developer but it seems like Microsoft has discontinued the product? I can't find it anywhere and even if i do, i'm not gonna fork out that sum of money just for converting the database.

Does anyone else have any other ideas to convert the .mdb to an .exe?

Xhenkaii

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-04-19 at 17:47:07ID20959796
Tags

access

,

exe

,

convert

,

mdb

Topics

Microsoft Access Database

,

Microsoft ADP

Participating Experts
11
Points
50
Comments
24

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. convert mdb to exe
    how i can convert my mdb to exe ?
  2. Convert .MDB to .EXE
    I want a program to convert from Access97 file "*.MDB" to "*.EXE" file. Please tell me Where i can find it and if it can work from "*.MDE" to "*.EXE" and what's the limited of a new .exe file thank you
  3. Compile MDB or MDE to EXE file
    can anybody tell me how to convert MDB or MDE to EXE file
  4. .mdb to .exe conversion
    How can I convert MS Access .mdb files to standalone applications? Is it possible at all without previous conversion to Visual Basic? Any software that you can recommend is strongly appreciated! Thanx in advance!
  5. How to mak .exe for mdb file
    Hello Experts, I have developed a application in MicroSoft Access, I have a difficulty. I want to make a .exe out of the mdb file, IS THIS POSSIBLE, CAN U TELL ME HOW TO DO IT? Thank You Oz

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jadedataPosted on 2004-04-19 at 17:49:04ID: 10864807

This can not be done.  To have an .exe you must write your application in a compileable language.
The MS Office Developer did not supply the means to create a exe from an mdb, only to be able to build a deployable that would set up the app according to specs.

 

by: xhenkaiiPosted on 2004-04-19 at 18:07:29ID: 10864906

Hi jade,

I understand what u mean. What i actually need to do is to create a deployable where only the GUI is accessible to the user.
I cannot create a MDE file. It seem to require the database to be access 02 and up. Does it?

Xhenkaii

 

by: flavoPosted on 2004-04-19 at 19:31:04ID: 10865316

>> I cannot create a MDE file. It seem to require the database to be access 02 and up. Does it?

97 you can create an MDE (Tools - Db utilities - Create MDE), did it about 2 mins ago..

Cant say for sure about older versions

To make an exe you'll need to use a VB / C (or the like) front end

 

by: xhenkaiiPosted on 2004-04-19 at 20:04:07ID: 10865430

I see... funny y i cant my MDE option is grey out...
Thanks for the info anyway pple.

 

by: ahmedbahgatPosted on 2004-04-19 at 20:15:59ID: 10865481

 

by: ahmedbahgatPosted on 2004-04-19 at 20:17:49ID: 10865490

you may also try this:

If the option to create MDE is greyed out you need to open the MDB file in exclusive mode. Go to file-open, click on the drop down box and choose open exclusive


cheers

 

by: xhenkaiiPosted on 2004-04-19 at 20:24:24ID: 10865530

well found this on a site.hope its useful to people reading this thread.
 credits to sean who is the administrator there

Basics
Let me start with the basics of a stand-alone, runtime Access application. As we all know mdb files require that Access be installed on a computer to run. MDB files run in development mode by default but you can open them in runtime mode by creating a shortcut to open the database and adding the /runtime switch. The shortcut command line includes these elements: <path to msaccess.exe> <switches> <switch parameters(if any)> <path to database file>
So to open a database in runtime mode create a shortcut with this in its Target field:
"C:\Program Files\Microsoft Office\Office\msaccess.exe" /runtime "C:\My Documents\mydatabase.mdb"
Runtime
The runtime mode simulates how a database will work if used in conjunction with the Access Runtime version. The Access Runtime version is a freely dsitributable version of Access that allows you to open a database file but not to modify it. You must purchase a royalty free runtime license from Microsoft in order to legally distribute the runtime version of Access. This license is included with the Developers versions of Office.
The runtime version of Access allows you to make your Access database appear to be a completely independant application. Users wont even know that your software is an access database unless they dig into the installation directory and see the mdb/mde files.
Now comes the tricky part, Installation
Installation
The Office Developers Edition comes with the Access Setup Wizard (dont know what its called in OfficeXP) that is designed to create an executable file that installs your database, the runtime version of access and all required support files. Thats great in theory, but the MS Setup Wizard is a piece of junk. We wasted months and thousands of dollars working with it only to find out that even after all the bugs were fixed it interfered with other Access applications. So we scrapped it an found a company called SageKey software that sells an Access Runtime install script for use with Wise Install Builder or InstallShield (the 2 most commonly used install applications). All you have to do is install Office Developers Edition, Wise InstallBuilder (or InstallShield) the script from SageKey, then you can edit the script as you like (very simple script language and it is commented to tell you where to edit). then click the compile button in Wise and it creates a single EXE file. This is also a great advantage over the MS Install Apps becasue they create an exe file but it must be accompanied by about 30 other files. Wise creates just one file. That makes it easy to let customers download your app or a demo of your app.
Tips and Tricks
Actually I lied when I said that the Install App was the tricky part.. Creating an Access database that can be widely distributed is the tricky part. You have to take your error handling (idiot proofing) to a whole new level. But here are some tips and tricks you can use to develop your app.
1) Create a Bitmap image for use as a splash screen, name it the same name as the main database file and make sure it installs in the same directory as the main database file. Access will display your splash screen instead of the Access splash screen when the app starts.
2) Download Icon Easel or some other Icon creation software and create an ICO file for your App. It is a dead giveaway when the Access icon is displayed in the Title bar.
3) Create a Help File. The Help software that comes with Office Developers Edition kinda sucks, so I bought an inexpensive app called WinHelpDesign. You can create context sensitive Help files that associate forms, reports or even specific controls with a Help Topic. When the User asks for help, it will take them directly to the topic you associated to the form/report/etc.. WinHelpDesign will also export your Help file to HTML so you can post it on a website.
4) Make your database file MDEs. Unless you are selling the app as opensource where you allow customers to make changes, it is advisable to only distribute MDE files. That way customers cannot not accidentally modify anything (even if they open the file in the full version of access) and they cannot see your source code (or steal any of it).
5) Create a separate security file. The SageKey script is designed to do this already. Create a copy of the default system.mdw file and customize it if you want your users to be able to implement security. One of the (many) limitations in the runtime version is that users do NOT have access to the security settings. So, if you want to allow users to setup security, you will have to build an interface. (Im working on one now). You can predefine user groups in the new MDW file. That way all the user has to do is create a new user, assign a group and give it a password. Its very messy if they have to get into object level permissions.
Access security is a topic all by itself so Ill leave it at that
6) Add Management tools.
6.1)If you are going to enable the ability to install the app on a network, then you need to add some management tools to your app. For one, users need to have the ability to relink thier tables to the data file on the network. There is code in Northwinds that shows how to do this. It is a lot of code, most of it is used to generate a Browse window. So if you can think of a way to do this without using a browse window, it will be alot easier..
6.2) The SageKey script can install Repair and Compact shortcuts. I actually prefer to set a timer that will set the Compact on Close option every month. But you at least need a Repair shorcut for your main app file. You can create a button to Repair and Compact the data file (if you are doing a network enabled app).
6.3) Backup, Archive, Import Archive data options are always nice to have..not very difficult to add. And the ability to install an update. An easy way to do this is to just replace the front-end file. Of course you cant do that if it stores any important information so you would have to create routine that transfers database objects from an update mdb file..

I know thats alot to think about, my apps have evolved over a long period of time (based on user requests, etc..) but the work is well worth it.

 

by: dds110Posted on 2004-04-20 at 05:13:52ID: 10868023

You can still "lock" the db down so that the users cannot get into the db objects (forms, tables, modules, etc...).

Create a new module and paste this code:

Sub SetStartupProperties()
    ChangeProperty "StartupForm", dbText, "YourFormHere"
    ChangeProperty "StartupShowDBWindow", dbBoolean, False
    ChangeProperty "StartupShowStatusBar", dbBoolean, False
    ChangeProperty "AllowBuiltinToolbars", dbBoolean, False
    ChangeProperty "AllowFullMenus", dbBoolean, False
    ChangeProperty "AllowBreakIntoCode", dbBoolean, False
    ChangeProperty "AllowSpecialKeys", dbBoolean, False
    ChangeProperty "AllowBypassKey", dbBoolean, False
    ChangeProperty "AppTitle", dbText, "Application Title Here vs1.2"
    Application.RefreshTitleBar
End Sub

Public Function ChangeProperty(strPropName As String, varPropType As Variant, varPropValue As Variant) As Integer
    Dim dbs As Database, prp As Property
    Const conPropNotFoundError = 3270

    Set dbs = CurrentDb
    On Error GoTo Change_Err
    dbs.Properties(strPropName) = varPropValue
    ChangeProperty = True

Change_Bye:
    Exit Function

Change_Err:
    If ERR = conPropNotFoundError Then  ' Property not found.
        Set prp = dbs.CreateProperty(strPropName, _
            varPropType, varPropValue)
        dbs.Properties.Append prp
        Resume Next
    Else
        ' Unknown error.
        ChangeProperty = False
        Resume Change_Bye
    End If
End Function

The key line of code here is this

    ChangeProperty "AllowBypassKey", dbBoolean, False

This turns off the shift key.  It's a good idea to create yourself a back door by changing the line to this:

    ChangeProperty "AllowBypassKey", dbBoolean, True

You can put that on the Double Click event of a label.  You should try this out on a COPY of your database first.

This code does not prevent anyone from creating a new database and then importing all the objects from your database.

HTH

 

by: dds110Posted on 2004-04-20 at 05:18:54ID: 10868054

oh yeah, my previous post is based on this comment

>>What i actually need to do is to create a deployable where only the GUI is accessible to the user

 

by: xhenkaiiPosted on 2004-04-21 at 18:04:49ID: 10884522

dds110,

I've tried your code but it throws me a type mismatch error.
The error happens on this line:
dbs.Properties(strPropName) = varPropValue

and it throws the "type mismatch" on  
Set prp = dbs.CreateProperty(strPropName, _
            varPropType, varPropValue)

Just to retrace my steps. I created a module and copy paste ur sub and the public function into it. I've insert ChangeProperty "AllowBypassKey", dbBoolean, False into the form_load() of the switchboard. Right?

Xhenkaii

 

by: sethspearmanPosted on 2004-05-05 at 06:49:30ID: 10995978

If I can just add my two cents worth...

First to create BULLETPROOF runtime installation of Access apps using the Access Runtime Modules then look into buying preconfigured scripts from SageKey.com.  In order to do this legally you will need to be licensed for Office Developer Edition (Which I KNOW was available in all version of access from 97 to 2002.) and Wise Installation System ver 9.

Office Developer comes with some deployment options but they are not bulletproof.

If all you want to do is lock down the user interface (without using an MDE) you can download some rather chintzy free tools from my website at www.accesswizards.com/downloads.  (Hopefully you won't regard this as promotion since I make no money from the tools and they are not supporte).

Regards

Seth B Spearman


 

by: dds110Posted on 2004-05-05 at 18:42:43ID: 11001472

xhenkaii,

you only need to run the code once.  After you have pasted the code into the new module (and saved it), place your cursor anywhere within the sub wrappers and press F5.  The next time you open the database, it should be locked down.  One caveat to this:  anyone can still create a new database and import all of the objects in your "locked down" db into the "new" db.

Now, for the error.  What does varPropValue contain and is it the right type for the corresponding varPropType?

 

by: dds110Posted on 2004-05-05 at 18:45:27ID: 11001479

sethspearman

I'd love to see your site but I can't get to it.  Server problems or could it be on my end?

 

by: sethspearmanPosted on 2004-05-05 at 19:14:14ID: 11001646

OOPS.

Got the URL wrong.  It should have been:

http://www.accesswizards.com/Downloads.html

The web site is old (I am doing a new one now) but that should work for you.

Seth

 

by: Dman247365Posted on 2004-05-10 at 06:08:39ID: 11030728

Hey,
I found an url in which MSAccess 97 RunTime was incorporated.
Just download the zip file and install the 2 items!!!, otherwise MSAcces 97 runtime will not be installed!
http://habitat.pac.dfo.ca/pskf/version4_0/system/skmenu1.cfm
Select the url:
Download Data Entry Programs Include MSAccess Runtime Version (12MB) )
For extra Info:
http://habitat.pac.dfo.ca/pskf/version4_0/system/Instructions.htm
Remember, You have to install both items. Once installed you can delete the database that is in it and copy your Access mdb in it.
;-)

 

by: Dman247365Posted on 2004-05-10 at 06:53:47ID: 11031137

Ok,
If you want to download the Runtime for Access2000...[StreetValue is Free ;)]
Here is the link,.. and it works Fantastic!

http://download.microsoft.com/download/office2000dev/art2kmin/1/WIN98/EN-US/ART2KMin.exe

Finally, there is an extra securitypatch You have to install... KB827431

http://www.microsoft.com/office/ork/updates/97_2000/art0901a.htm

 

by: Dman247365Posted on 2004-05-11 at 11:24:08ID: 11043291

Last but not least...

Access 2002 Runtime Version.. Included in following Demo Pack
http://www.service.csrconsultants.net/DemoR.exe

Office XP Service Pack 3 (SP3) for Access 2002 Runtime
http://www.microsoft.com/downloads/details.aspx?FamilyID=a46ad6fa-4137-4ecc-8a78-7980b80b60ff&DisplayLang=en

 

by: lallentxPosted on 2004-05-19 at 06:54:05ID: 11107881

regarding locking down the database, have try this.
go to tools/startUp/ then unmark the "display database window option"

also, I udnerstand you mihgt have to use the databse spliter. this creates a back-end a new database where all the table objects are stored along with the data. it then creates a front-end (this is the part the the users can see) here the query, form and reports objects are stored.

the spliter also links the front-end to the back end.
( moved my back end to the SQL server and the front end is an .mde file in a file server, works great!!)

you can then create the .mde

if the database is open the .mde option will be gryeded out. to create the .mde the database has to be closed. open access but do not call the database. Also if the database is a different version that the version of MS Access in your system the .mde option will be grayed out. both MS access and the database must have the same version.
you might want to consider converting your databse before starting any of this work.

hope it helps.

 

by: dairolozanoPosted on 2004-06-10 at 22:44:01ID: 11286141

Ok,
If you want to download the Runtime for Access2000...[StreetValue is Free ;)]
Here is the link,.. and it works Fantastic!

http://download.microsoft.com/download/office2000dev/art2kmin/1/WIN98/EN-US/ART2KMin.exe
----
Thoug I consider the idea of downloading this demo and distributing it with my .mde really exciting,I think is not legal. So, If you will distribute a pirate version of your file, it will be as illegal as if you installing a pirate Office XP copy.

 

by: yogi1945Posted on 2005-02-02 at 11:46:18ID: 13206969

After downloading ART2kMIN.exe and extracting 377 files, I was able to run a test .MDE file on a non-MSOffice system via the commandline.  After un-installing MSAccess Runtime and later re-installing on the same machine, I then got a "MSAccess is not licensed for usage on this PC" message.  Any ideas to resolve this ?

 

by: DinamitPosted on 2005-05-21 at 02:28:18ID: 14050992

Does anyone found the way that convert .mde to .exe file?

 

by: DinamitPosted on 2005-05-21 at 02:32:30ID: 14051004

and..

Comment from lallentx
Date: 05/19/2004 06:54AM PDT
 Comment  
regarding locking down the database, have try this.
go to tools/startUp/ then unmark the "display database window option"
 
I made this. So how can I re gain My menus?

 

by: DocZayusPosted on 2005-08-18 at 06:45:20ID: 14700282

F11

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...