Hi,
I am working on a Access DB and I need to call a global function from a second database in my VB codes.
I know that I have to set a reference but i do not know how.????
Well, in the Add References dialog box you can change "File Type" to look for Access databases (MDB), then browse to the other Access file and choose it. Then you will have access to all it's Public functions.
However, it would probably be a lot simpler to just Copy & Paste the function from the one MDB file to the other. It's more overhead to call the function on another DB, and the reference to the other MDB file will be very easily broken.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.