Set a table connection in Access VBA within an addin .mde

Hello experts

I have about 150+ Access '97 (I know..) applications to support, and all of them have a libary.mde add-in that is used for common funcitons.
I'd like to impliment report run logging within my libary.mde add-in by linking within the addin to a table, and then doing basic Insert/Update SQL.

Problem:  In VBA in the add-in, CurrentDB() will refer to the front-end application, and not the addin itself.  
In VBA in an addin .mde, how do you set a reference, either DAO or ADO, to a table within the addin, and not the calling .mdb?

This works when I link the 'log' table to the front-end .mdb, but I'd rather link to one addin .mde instead of 150+ frontend .mdb's.

LVL 67
Jim HornSQL Server Data DudeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeOwner, Developing Solutions LLCCommented:
Use CodeDb instead of Currentdb.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim HornSQL Server Data DudeAuthor Commented:
Worked like a charm.  Thanks.  -Jim
Rey Obrero (Capricorn1)Commented:
hey Jim... how are you?
Jim HornSQL Server Data DudeAuthor Commented:
Hi Rey, doing good.  You?
I switched jobs a couple of years ago, and was just booted up to management, so now I manage ten SQL-SSIS-SSRS-Access developers.
Rey Obrero (Capricorn1)Commented:
hey, that's great..
i'm fine too.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.