PC Review


Reply
Thread Tools Rate Thread

Compile modules question

 
 
=?Utf-8?B?TGlsTW9yZVBsZWFzZQ==?=
Guest
Posts: n/a
 
      9th Nov 2006
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!

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      9th Nov 2006
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.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"LilMorePlease" <(E-Mail Removed)> wrote in message
news:721DDBA3-D901-482F-AAA1-(E-Mail Removed)...
> 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!



 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      12th Nov 2006
LilMorePlease <(E-Mail Removed)> wrote:

>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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Error in Hidden Charge back Modules Liela Microsoft Word Document Management 1 10th Jul 2008 03:57 PM
Compile all modules =?Utf-8?B?SkNQ?= Microsoft Access VBA Modules 2 4th Sep 2007 10:39 PM
Compile to form without add-in modules =?Utf-8?B?R3JldGNoZW4=?= Microsoft Access Forms 1 7th Nov 2005 09:29 PM
Basic question - modules and class modules - what's the difference? Mark Stephens Microsoft Excel Programming 9 8th May 2005 11:48 AM
Question regarding Modules Lis'a Microsoft Access VBA Modules 3 15th Jan 2004 05:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.