Solved

(Missing) Microsoft Windows Common Controls-2 6.0(SP4)

Posted on 2004-09-14
6
11,685 Views
Last Modified: 2012-08-14
While trying to install a database on another computer I get the message "Library not found" when a statement references "date" (a member of VBA.DateTime according to the object browser).

When I check the references on that computer, I find the following:

(Missing) Microsoft Windows Common Controls-2 6.0(SP4)

I have loaded all the service packs but still get the "Library not found" message.

What's up?  What am I missing?

Thanks, Lyle


0
Comment
Question by:Faurot
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 12055877
on the VBA window

Tools>References
Uncheck the one with MISSING:{take note of the name}
locate the available references and select
0
 
LVL 41

Expert Comment

by:shanesuebsahakarn
ID: 12055895
The Common Controls OCX used to be part of the Visual Basic Runtime. It's not part of the service packs, but you can transfer it by locating either MSCOMCTL.OCX or COMCTL32.OCX (usualling in Windows/System32) and copying and registering it on the target PC. I think the one you want is MSCOMCTL.OCX, but I couldn't swear to it.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 12055957
if you can not find it on the Reference window
click Browse and look for

C:\WinNT\System32\mscomct2.ocx    
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:Faurot
ID: 12056691
Capricorn,

I unchecked the missing reference, then browsed for it as you suggested.  

When I checked the references and checked the one that was needed I noticed it didn't have the (SP4).  

I don't know yet if that is a problem--the program appears to work, but I need to push it a bit to find out if this has solved the problem.

Thanks, Lyle
0
 
LVL 39

Accepted Solution

by:
stevbe earned 250 total points
ID: 12057567
It sounds like you may not even need it ... try unchecking it and then compiling ... this should point to any difficulties. A lot of times libraries get added and never used. The particular error you got had nothing to do with the Common Control, it just happened to get tripped up by it. VBA is usually the first thing to get goofy when Libraries (any one) is MISSING.

Steve
0
 

Author Comment

by:Faurot
ID: 12068228
Steve,

I tried unchecking the reference and the problem hasn't reoccured for about a day now.

This is a useful thing to know--that references may be added for one reason or another, then not unchecked when it turns out they are not needed.

Thanks, Lyle
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

730 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