Solved

macros in mde file

Posted on 2002-04-01
2
338 Views
Last Modified: 2013-12-05
I have a mdb file, I made a mde file from it to prevent showing the code.
but the mde file contains some macros. how can I prevent users to show the design of these macros in the mde file.
0
Comment
Question by:fadiwilliam
2 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
Comment Utility
In general it is a VERY bad idea to use Macros FOR ANY PURPOSE in a real Access application.  This is so for several reasons (in fact, Microsoft has indicated that they are only supporting the macro capability in Access 2000+ for backward compatability, and MS STRONGLT advises against the conscious use of macros in applications developed with Access2000 and later versions)

1) Macros cannot be debugged - there is no way to interupt the steps of a macro to evaluate what is happeing at each step.

2) as you have discovered, since macros ARE NOT code, they are not affected by the process of generating an MDE, so the macros are fully exposed in the resulting MDE file.

3)Almost without exception, a macro can be replaced by the equivalent VBA code, with generally much more flexibility and control.
0
 
LVL 1

Accepted Solution

by:
jschrisman earned 10 total points
Comment Utility
For each macro name in the list of macros, right click on the macro name and choose properties. Then set the Hidden property.

On the tools menu, choose Startup. Uncheck display database window and anything else you want to change.

This will hise the macros from the average user. However, anyone proficient in Access will be able to easily get around this.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now