Using mdb reference is allowed only from mdb file 
Author Message
 Using mdb reference is allowed only from mdb file

I have reference from my Project1.mdb file to another CommonLib.mdb file.
If I try to compile Project1.mdb file into mde, it show error.
If I compile CommonLib.mdb into mde and then reference mde from
Project1.mdb, then will be able to compile Project1.mdb
Why is that happening ?
Does compilation process compile data from all referenced libraries into
current project (which will allow me to delete referenced mde at runtime) ?


Sun, 16 Oct 2005 10:57:55 GMT  
 Using mdb reference is allowed only from mdb file
r2d2,

Quote:
> I have reference from my Project1.mdb file to another CommonLib.mdb file.
> If I try to compile Project1.mdb file into mde, it show error.
> If I compile CommonLib.mdb into mde and then reference mde from
> Project1.mdb, then will be able to compile Project1.mdb
> Why is that happening ?

This is by design and is meant to insure the security of your code.  As you
may know, creating an MDE strips out the code and replaces it with compiled
VBA pseudocode.  As a result, the user cannot view the code and shouldn't be
able to do so in any of the project's libraries either.  Once a file is
compiled into an mde, neither it nor it's libraries can be changed or the
app will fail to run any code.  To minimize the chances that someone may
change things in your library db, they made it possible only to reference
other mdes from mde file.

Quote:
>Does compilation process compile data from all referenced libraries into
> current project (which will allow me to delete referenced mde at runtime)

?

I don't think it compiles all the code from the library db into the current,
but it definitely knows more about the lib than it's path because you cannot
replace a library db with an updated one (even with the same name and path)
without recreating your current project mde file.  You cannot delete the
referenced db at runtime.

HTH,
Josh


Quote:
> I have reference from my Project1.mdb file to another CommonLib.mdb file.
> If I try to compile Project1.mdb file into mde, it show error.
> If I compile CommonLib.mdb into mde and then reference mde from
> Project1.mdb, then will be able to compile Project1.mdb
> Why is that happening ?
> Does compilation process compile data from all referenced libraries into
> current project (which will allow me to delete referenced mde at runtime)
?



Sun, 16 Oct 2005 20:06:00 GMT  
 Using mdb reference is allowed only from mdb file
Ok, Now I see.
Thank you.



Quote:
> r2d2,

> > I have reference from my Project1.mdb file to another CommonLib.mdb
file.
> > If I try to compile Project1.mdb file into mde, it show error.
> > If I compile CommonLib.mdb into mde and then reference mde from
> > Project1.mdb, then will be able to compile Project1.mdb
> > Why is that happening ?

> This is by design and is meant to insure the security of your code.  As
you
> may know, creating an MDE strips out the code and replaces it with
compiled
> VBA pseudocode.  As a result, the user cannot view the code and shouldn't
be
> able to do so in any of the project's libraries either.  Once a file is
> compiled into an mde, neither it nor it's libraries can be changed or the
> app will fail to run any code.  To minimize the chances that someone may
> change things in your library db, they made it possible only to reference
> other mdes from mde file.

> >Does compilation process compile data from all referenced libraries into
> > current project (which will allow me to delete referenced mde at
runtime)
> ?

> I don't think it compiles all the code from the library db into the
current,
> but it definitely knows more about the lib than it's path because you
cannot
> replace a library db with an updated one (even with the same name and
path)
> without recreating your current project mde file.  You cannot delete the
> referenced db at runtime.

> HTH,
> Josh



> > I have reference from my Project1.mdb file to another CommonLib.mdb
file.
> > If I try to compile Project1.mdb file into mde, it show error.
> > If I compile CommonLib.mdb into mde and then reference mde from
> > Project1.mdb, then will be able to compile Project1.mdb
> > Why is that happening ?
> > Does compilation process compile data from all referenced libraries into
> > current project (which will allow me to delete referenced mde at
runtime)
> ?



Mon, 17 Oct 2005 04:49:41 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Concatinate .mdb files into single .mdb file

2. References Collection of a Referenced MDB

3. References to different .mdb files with same project name

4. import hebrew text files to mdb files, using VB5

5. How to import a text file to my mdb file using vb5

6. Specifiying a Workgroup File When Using ADO to Open an Access .mdb file (OLEDB)

7. Allowing NULL in MDB from SQL

8. make mdb field "Allow Zero Length"

9. need help updating a local front end mdb from an mdb on an ftp site

10. A2k: Controlling a back-end MDB from its FRONT-end MDB

11. Copy a table from Template.mdb to existing.mdb

12. Eval() Works In 1 mdb (same machine) but not 2nd mdb

 

 
Powered by phpBB® Forum Software