How to call a function in the main program from my AddIn?

W

Woo Mun Foong

I have a application :- MainApp.mdb,
which call a Form from an Add-In :- MyAddIn.mde
My problem is I need to call back a form in the MainApp.mdb from
MyAddIn.mde.

Doing the followings in MyAddIn.mde won't work

'***************************************************************************
********
Dim objAcc As New Access.Application

objAcc.OpenCurrentDatabase("c:\MyDir\MainApp.mdb")
objAcc.Run "MainApp.MyFunction", "MyParameter"
'***************************************************************************
********

Any suggestion ? Please help.

thank you,
mfwoo
 

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