Results 1 to 5 of 5

Thread: ms access compile modules / link to mde vba modules

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    586

    Red face ms access compile modules / link to mde vba modules

    Hi,

    I have an MDB that has its VBA modules and code (lets call it main MDB). I have got another MDB with some VBA functions that i'd like to protect its code. (lets call it functions MDB) any ideas how to do it?

    I guess i'm asking is it possible to either:
    1. compile the functions MDB into an MDE, and then somehow to link the main MDB code into this new MDE...

    2. to somehow compile or otherwise secure the code modules inside the functions MDE and then to export them to the MDB

    is this possible somehow ?

  2. #2
    Fanatic Member dmaruca's Avatar
    Join Date
    May 2006
    Location
    Jacksonville, FL
    Posts
    577

    Re: ms access compile modules / link to mde vba modules

    Password protect the code modules in functions MDB from the VB editor Tools->Properties. Inside main MDB, open Tools->References from the VB editor. Click browse and select your functions db. You're done.

    You don't have to compile it into an MDE.

  3. #3
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: ms access compile modules / link to mde vba modules

    VBA password is relatively easy to break. Compile into MDE is more secure.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    586

    Re: ms access compile modules / link to mde vba modules

    Yes I know that VBA password is easy to break, but how can i compile into MDE and still call this MDE functions from another MDB ?

    Thanks,

  5. #5
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    351

    Re: ms access compile modules / link to mde vba modules

    You need to add the mde file as a reference. In a code window goto: Tools > References. Then click browse and select your mde file.

    One thing to consider if you are to deploy the the mdb to multiple users you need to make sure the mdb is in a network area they all can access.
    Rico

    Using: VB.net & MS SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width