Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run function in different MS access database file

Status
Not open for further replies.

mygmat123

Technical User
Jun 28, 2004
56
US
I need to run a function from another database file I have, the function returns a value. What would be the code that wuld reference the file/module/function? Thank you
 
mygmat ... I understand what you are trying to do, however I don't beleive this is possible (kind of like using the function as you would from a DLL..)

What I'd suggest doing is important the function required into your db, and linking the data you need to run the function against. This way the objects are run locally.

------------------------
Hit any User to continue
 
I really wanted to prevent doing that. But if that's the only way, I'll have to. Though I thought I remember learning that you could, and I just did not remember how.

thanks
 
There may well be!! I'd be interested to hear if it can :D

------------------------
Hit any User to continue
 
You can reference other databases through the Tools/References menu, Click on Browse then change 'Files of Type' to MDB. You can then browse to your access database and use any of the public functions.
HTH
Peter
 
Thank you both, I added the reference AND Linked the Tables

It works great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top