Call a function from .mde

T

Tim

Hi everyone,

I have two database files. One is called test.mdb and the
other is function.mde. Both of them are saved on a shared
drive.

Is possible to call a function in function.mde from
test.mdb? How?

Thanks in advance.

Tim.
 
M

Marshall Barton

Tim said:
I have two database files. One is called test.mdb and the
other is function.mde. Both of them are saved on a shared
drive.

Is possible to call a function in function.mde from
test.mdb? How?


In test.mdb, you can set a Reference (Tools menu) to
function.mde. Then all the Public functions and Subs in
standard modules can be used as if they were in test.mdb.
 
T

Tim

Marsh,

It works fine for public function but I also have a class
module in the DB. I couldn't call it from test.mdb Do
you have any idea how to fix it?

Thanks a lot.

Tim.
 
T

Tim

Paul,

I went to the site but it was not the way I look for. My
clase module was located in function.mde. I couldn't
export it to text file. Is there a way to call it?

Thanks.

Tim.
 
M

Marshall Barton

Tim said:
It works fine for public function but I also have a class
module in the DB. I couldn't call it from test.mdb Do
you have any idea how to fix it?

Not without making some change to the original mdb file. If
you don't want to use the save as text, edit, load from
text, then the only other way I know of is to add a public
function to a standard module in the original mdb file that
can then be called to create and return an instance of the
class.
--
Marsh
MVP [MS Access]


 
T

Tim

Marsh,

Thanks.

Tim.
-----Original Message-----
Tim said:
It works fine for public function but I also have a class
module in the DB. I couldn't call it from test.mdb Do
you have any idea how to fix it?

Not without making some change to the original mdb file. If
you don't want to use the save as text, edit, load from
text, then the only other way I know of is to add a public
function to a standard module in the original mdb file that
can then be called to create and return an instance of the
class.
--
Marsh
MVP [MS Access]


test.mdb.

.
 

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