Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2000 MDE to Runtime

Status
Not open for further replies.

jacobl

Programmer
Mar 1, 2000
3
AU
I have the ODE tools, and need to make a runtime version of my Access 2000 database...<br><br>Firstly, I made the runtime version using my MDB file. All fine...<br>Then I tried to make a runtime version of my MDE file..But I can't because MDE's have no modules, thus I cannot get to the Visual Basic Editor that comes with Access 2000. Hence, I cannot run time Package and Deployment Wizard addin to make the runtime file.<br><br>How do I create a runtime version of an MDE file?????<br><br>Thanks,<br><br>Jake.
 
Why do you need to get the a module of an .MDE<br>
Do everything in the .MDB add you code or whatever.<br>
Get it all working then make a .MDE out of it.<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
OK. I have .MDE file sitting on my computer. But how do I make it into a runtime for distribution with the Package and Deployment wizard? I can't just give people a .MDE file coz there will be no setting up of references or anything&gt;&gt;
 
I have encountered the same problem and have found this solution.

1.) Create a SECURE .mdb file. Lock it down so that end users cannot get into your file. Lock your project file, disable the allow bypass key (Shift), and create your own right click shortcut menu so the end user cannot get to &quot;design&quot;.

2.) Create a new toolbar with the &quot;Show VB Window&quot; command on it.

3.) Create a macro to show the new toolbar you just created.

4.) Create a hidden button/text box on your opening database form so that when you double click it it will show the new toolbar you just created that has the VB command on it that will open the Visual Basic Editor.

5.) Once you open the Visual Basic Editor minimize it monetartily and close the VB toolbar on your application.

6.) Maximize the VBE and run your package and deployment wizard.

You've just created a secret backdoor into VBE.

DH
 
DH, I like your solution! However there may be an easier way unless you have disabled the &quot;bypass key&quot;. Do you have a startup form instead of a typical database window running at startup? The autoexec macro causes the main database window to remain hidden and open your startup form. There are modules in an .MDE file, it's just that they are compiled and there is no way to view the code in them. The easy way around this issue is to use the &quot;by-pass&quot; key when opening the .MDE file.

Just after clicking the .MDE file to open it, press and hold the &quot;Shift&quot; key. This will prevent the autoexec macro from running and opening the startup form. You will open the database to the database window and the default menus. Now you will be able to open the Visual Basic Editor from the &quot;Tools&quot; menu or pressing the shortcut keys &quot;Alt+F11&quot;. Then you will see the Addins menu to run the Package and Deployment wizard.
Bryan Meek
bmeek@pacbell.net
A &quot;Solution Provider&quot; in your corner gives you the personal attention you need to find the right technology solutions for your business.
 
i want to create a MS Access database from Vb at run time
the help will be apprecited
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top