Creating and using an ms access database library of vb code.

R

rogsonl

I know you can compile an access database into a library and then use it.
Its been years since I needed to do this, and I don't remember how to go
about it.
I need to take existing code and place it into the library. This is a set of
code classes, not forms.
Thank you in advance for your help.
Leon
 
D

david

From a code window, go to the menu item Tools, References,
and add a reference to your library MDB.

All of the Modules, Functions, and Subroutines are exposed.

None of the Classes, Forms, or Reports are exposed (unless
you use Access 95). You need to add stub functions to access them.

If you use an application MDE, your library also needs to be an MDE.

(david)
 
T

Tony Toews [MVP]

rogsonl said:
I know you can compile an access database into a library and then use it.
Its been years since I needed to do this, and I don't remember how to go
about it.
I need to take existing code and place it into the library. This is a set of
code classes, not forms.

See my Add-in Tips, Hints and Gotchas page at
http://www.granite.ab.ca/access/addins.htm

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
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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

Top