By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,968 Members | 1,226 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,968 IT Pros & Developers. It's quick & easy.

Raise Event from referenced mdb to Main.mdb

P: n/a
I referenced an mdb file to the main db using Tools -> Reference in the
VBA Editor of the main mdb.

I am able to open and use the forms in the referenced program, via a
public sub that resides in a standard modual in the referenced program.

My problem is catching an event when the user clicks a button on a form
in the referenced program, and responding to the event in the main
program.

Since the class objects of the referenced program doesn't seem to be
visible to the main program; is there any way around this for sending
back events to the main program?

Mar 6 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can Run or Eval functions in the main program, or in other
loaded references.

But I also wonder about the design of your program. I almost
never call down the chain.

It is not considered bad practice because it is difficult
to implement: rather, the implementation is not obvious
because it is considered bad practice.

BTW, you can pass form and other objects back and forth,
and the application.forms collection (all open forms) is
visible everywhere.

(david)

"Jonathan" <go****@jbmail.co.uk> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...
I referenced an mdb file to the main db using Tools -> Reference in the
VBA Editor of the main mdb.

I am able to open and use the forms in the referenced program, via a
public sub that resides in a standard modual in the referenced program.

My problem is catching an event when the user clicks a button on a form
in the referenced program, and responding to the event in the main
program.

Since the class objects of the referenced program doesn't seem to be
visible to the main program; is there any way around this for sending
back events to the main program?

Mar 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.