Compile modules question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've designed a database that will soon be distributed to another location.
I recall reading somewhere, but can't find it, that there is a reason to not
compile the modules before distribution. Anyone know if there are drawbacks
to compiling the modules?

TIA!
 
Not sure who would have told you *not* to compile, or why.

If your users will have different versions of Access, you need to compile
using the lowest version. For example, if you have some users with Office
2000, and others with Office 2003, you need to compile using Access 2000.

Explanation:
Access 2003 can read code compiled in Access 2000, but not the reverse.
Hence, if you compile in A2003, when the mdb is opened in A2000, it can't
make sense of the A2003 binary, so it will treat the database as uncompiled.
In a perfect world, that would work transparently. In practice, it can lead
to weird errors that make no sense at all.

If that happens, decompiling is the way to sort it out (i.e. the command
line switch /decompile.) Perhaps that's what you heard.

The best solution might be to create an MDE using the lowest version you
need to handle, and give that the the users. It not only prevents them from
fiddling with the database (e.g. changing the code or modifying the forms),
but it also can't decompile.
 
LilMorePlease said:
I've designed a database that will soon be distributed to another location.
I recall reading somewhere, but can't find it, that there is a reason to not
compile the modules before distribution. Anyone know if there are drawbacks
to compiling the modules?

Compiling is a good thing. It locates some VBA errors and typos.
I'll do it every five or fifteen lines of code depending on what I'm
working on.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top