Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- From: "david epsom dot com dot au" <david@epsomdotcomdotau>
- Date: Thu, 25 May 2006 13:29:35 +1000
Problem is the Classes are not available. I don't know how to apply
Attribute suggestion you mentioned. Maybe it would help maybe it
Apparently it doesn't work in 2003. So it should work in 2002,
but you may wish to reconsider your use of classes.
(david)
"Mark" <Mark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D1AC489B-3D37-4749-BDBB-672E2D095ECF@xxxxxxxxxxxxxxxx
Alex -
After playing a bit I am able to "see" the modules in DB2. We were able
to
see the modules without using the Attribute suggestion.
Problem is the Classes are not available. I don't know how to apply the
Attribute suggestion you mentioned. Maybe it would help maybe it wouldn't
don't know.
Any other suggestions would be welcome.
Thanks, Mark
"Alex Dybenko" wrote:
Hi Mark,
I am not so familiar with classes in library mde, but AFAIR - you have to
do
some tricks in order to have it visible. Look here:
http://alexdyb.blogspot.com/2005/01/how-to-hide-procedure-in-library-mde.html
I think you have to set:
Attribute VB_Exposed = True
using method in a link provided
--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
"Mark" <Mark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A79DA1B6-E87C-46F8-BB6A-E53D86C8265A@xxxxxxxxxxxxxxxx
Alex -
Upon further review...
I was able to set the reference to DB2 from DB1.
The Explorer window shows DB2 project and there it shows up under
"References" as a "Reference to DB2.mdb" in the DB1project also in the
Explorer window.
So that looks great. By all indications the reference is set.
However, when I go to dim a class or module from DB2 they don't show up
in
DB1.
So:
dim obj as DB2.myclass
set obj = new DB2.myclass
It gives me a "User Defined type not defined" error.
FYI, I tried setting a reference to the Northwind - which was
successful.
The "Northwind" reference shows up in the object window. DB2 does
not.
I'm using Access 2002, if that makes a difference.
Any suggestions?
Thanks again, Mark
.
- Follow-Ups:
- Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- From: Alex Dybenko
- Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- References:
- Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- From: Alex Dybenko
- Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- From: Mark
- Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- Prev by Date: Re: Address book, strange behavior
- Next by Date: Re: Automatic Generate next available number base on selection
- Previous by thread: Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- Next by thread: Re: Sharing VB Classes with Other Databases (Alex Dybenko)
- Index(es):
Relevant Pages
|