Solved

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

Posted on 2004-09-14
6
10,927 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 119

Expert Comment

by:Rey Obrero
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 119

Expert Comment

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

C:\WinNT\System32\mscomct2.ocx    
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
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…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

861 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

25 Experts available now in Live!

Get 1:1 Help Now