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.

Thanks.
Jim
LVL 66
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAsked:
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 FyeCommented:
Use CodeDb instead of Currentdb.
0

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 HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor Commented:
Worked like a charm.  Thanks.  -Jim
0
Rey Obrero (Capricorn1)Commented:
hey Jim... how are you?
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorAuthor 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.
0
Rey Obrero (Capricorn1)Commented:
hey, that's great..
i'm fine too.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.