Office 2007 automation error library not registered

Hi Experts

I'm getting the following error when loading an access database:

automation error library not registered -2147319779

This is caused from previously installing office 2013 and then removing it and installing office 2007, the error occurs when a library is registered to a previous version of office, to resolve I need to remove the offending link from the registry, however the issue is identifying the correct registry key to remove?
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.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Most errors of that nature involve bad references in the database (i.e. you're referencing a library that's not installed).

Open the database and go to the VBA Editor, and click Tools - References. Check those to be sure none are marked as MISSING. If there are any marked as such, then you'd need to resolve those - either install the necessary files/programs to provide those references, or remove them if they're not needed.

If none are marked as MISSING, then uncheck one of the references (be sure to note exactly which one it is), then close and reopen the References dialog, and then find and re-check the reference you removed earlier. This forces Access to recreate (and validate) the references.

Note too that you can determine which references are needed by doing this:

1. Compile your database - from the VBA Editor, click Debug - Compile. Fix any errors, and continue doing this until the menu item is disabled.
2. Remove the reference - click Tools - References, and uncheck the reference
3. Now compile the db again.

If the database compiles in Step 3, chances are you do NOT need that reference.

If the database does not compile, then you'd need to remake that reference.
coreccAuthor Commented:
The solution involved clearing out all registry references to the 2013 office install

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
coreccAuthor Commented:
This resolved the issue
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 Office

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.