Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2006, 12:44 PM
Authorized User
 
Join Date: Jan 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do i keep users from viewing my code?

i want to be able to share my database with other company's but i dont want them to be able to view or have access my code...
is there a way to place some security on it??

 
Old March 21st, 2006, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

You can create an .MDE version of your .MDB file: Tools -> Database Utilities -> Make .MDE File. This will compile and remove any human- readable source code from your modules. Each version of Access, however, can only make an .mde version of .mdb files that are formatted in that version of Access. So you may first need to convert you .mdb file to your version of Access (e.g., Access 2K2 and 2K3 use an Access 2K file format, so you may need to first convert your 2K formatted .mdb to your version of Access (2K2 or 2K3): Tools -> Database Utilities -> Convert Database.

HTH,

Bob

 
Old March 21st, 2006, 06:16 PM
Authorized User
 
Join Date: Jan 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Bob,

i'm trying to convert it to a .MDE file but after an hour my computer is still running at full capacity trying to convert this... i've now tried it on another computer and the same thing... do i need to purge anything why would this take so long... and cause my computer's CPU to run at 100%???

any ideas???

 
Old March 21st, 2006, 07:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

The two primary causes of problems when trying to create a .MDE are A) compilation errors and B) database corruption.

So 'bout all I can suggest is:

1. Will the mdb. compile? Open up the Visual Basic Editor (Alt-F11) and from the menu select Debug --> Compile. If it won't compile, fix your code.
2. Will the mdb. compact/repair successfully? If not, import all your objects into a new mdb. file.
3. Create the .mde on your local hard-drive.

Bob

 
Old March 22nd, 2006, 12:28 PM
Authorized User
 
Join Date: Jan 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bob, i just want say thanks for all your help!!!!!!!

YOU ARE THE MAN!!!!

I can't thank you enough....

-Dale

 
Old March 22nd, 2006, 12:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

LOL. Oh, no. I ain't da' man. Big Daddy Wills is da' man!!!!

But you're welcome Dale! :)

Bob






Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding a VBA Code from other users. shamala Excel VBA 5 May 15th, 2011 04:00 AM
viewing asp code in web browser srotondo Classic ASP Basics 5 December 6th, 2007 10:50 AM
Viewing code rather than content in browser aspnewbie Classic ASP Basics 2 March 27th, 2006 10:47 AM
No of users viewing ruhin PHP How-To 0 February 9th, 2005 09:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.