Solved

Microsoft Object Library 12 vs 11

Posted on 2009-06-30
8
597 Views
Last Modified: 2012-05-11
I have an Access database developed under Office 11. I accidentally opened the database on a PC that was under Windows XP  but had Office 12 on it. Now I have a missing reference to Microsoft Object Library 12 in the code somewhere and I get the error "Unable to load DLL"
Question,  is there any easy way that an amature can remove or replace the referece so my database is referencing Microsoft object Code 11?  Alternatively, Is it possible to add the missing object code to my system, without installing Office 2007 ? etc. ?
0
Comment
Question by:jwjjwj
  • 4
  • 3
8 Comments
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
Back on your Office 11 system:

1) open the vba editor
2) Tools >> References
3) Uncheck the **Missing reference
close ... and save the project.

mx
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
I had the exact same issue on a downloaded EE file from a question.  All you have to do is uncheck that reference.

mx
0
 

Author Comment

by:jwjjwj
Comment Utility
That was the first thing I tried. Unfortunately, I then receive a vb error "can't perform requested operation", and the reference is re-ticked as missing
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
Can you:

1) Compact & Repair (*** to shrink the size),

2) Zip up the MDB (*** to further shrink the size)

3) Attach the file for upload here (using the 'Attach File function below) ... removing any sensitive data of course.

4**** And please give a clear explanation of exactly how to reproduce the problem or what you are trying to do.

mx
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:jwjjwj
Comment Utility
Thanks MX, however i'd rather not do that, the DB is abou 80Mb and full of sensitive info. I have tested on a spare PC and can work round the problem by loading office 2007 on the same machine, then the DB works fine, but that is not what I want.
I suspect the reason I get the error 'Can't perform requested operation' on un-ticking the Missing Reference to Outlook Object Library 12" is because it replaced (somehow) the genuine reference to Microsoft Object Library 11" (I can see this on an older backup copy of the DB)
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
Comment Utility
Well, then try setting a reference to Microsoft Object Library 11 ... close and save ... and *then* try remove the 12 reference.

And/Or ... you can try to remove the 'stuck' reference with this code:

Public Function SSF_RemoveReference() As Boolean

    Dim ref As Reference
    Set ref = References!MSForms    'specify the reference to remove - you need to get correct name
    Dim x
    References.Remove ref                       ' this line removes the specified reference
 
    'option code to list references to help get the name
     For x = 1 To References.Count
        Debug.Print References(x).Name
    Next x
       
End Function
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
Comment Utility
Build a new, blank database on the Office 11 machine, then import everything to that new database (click File - External Data - Import).
0
 

Author Comment

by:jwjjwj
Comment Utility
Thank you MX and LSM,  
LSM, I did try that however as soon as Imported any Forms (not sure how many as I have quite a few), and went to actually use the forms, I received the same error.

However, I think I have corrected the problem by paritially following the lines from MX.
On a 2007 machine, I installed Office 2003 and then was able to open the original database, albeit with a couple of coding errors, I ignored the coding erros and once able to successfully open the VBA Editor, I was able to successfully remove the 'missing Microsoft Object Library 12' reference. Then with this gone, I returned the DB to the Office 2003 PC's and the DB appears to be working ok.

Again thanks for your prompt assistance.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now