Solved

Common Controls V5.0 SP2 in MSAccess 2003 ?

Posted on 2004-08-17
9
452 Views
Last Modified: 2013-12-26
I am writing a database in Access 2003.  I am using the Microsoft treeview control v.50 SP2 and the corresponding imagelist control.  

I put it on a clean Windows XP / Office 2003 machine and the treeview control is not there.  

In the code window, I went to the references and the Microsoft common Controls V5.0 SP2 was ticked, but listed as missing

Can anyone tell me which DLL/OCX etc  I need on the destination machine and how to register it/them.  

Is there a download that will install these controls for me, or do I need to drag a file from my dev machine??

Any help would be appreciated
0
Comment
Question by:johnnyboyleeds
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
9 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 11819457
the controls are found in the three files:

c:/winnt/system32/mscomctl.ocx
c:/winnt/system32/mscomct2.ocx
c:/winnt/system32/comct332.ocx

you should be able to register these files directly (using REGSVR32) or else, open Access in design mode, open any form in design mode, click on Tools/ActiveX Controls, then choose the Register button, and navigate to the indicated directory, locate the file(s) and register them.

AW
0
 

Author Comment

by:johnnyboyleeds
ID: 11819543
Am I allowed to distribute these files?
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 11820253
I would tend to doubt it.  They are NOT provided with MS Office, and you generally should NOT rely on them being present on any other system that you plan to distribute your MDB to.  You possibly have them present on your development box because you also have VB 6 (Visual Studio) on that box - (just a guess).

I try to avoid using non-standard controls in an Access app, for precisly this reason - by that I mean controls that are NOT part of the normal Access/Office installation.

AW
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

by:johnnyboyleeds
ID: 11832439
Thanks for your help, but I was still left looking for answers.  

After a bit of digging. I have found out the that common controls v5.0 SP2 actually consist of these files:

c:\windows\system32\comctl32.ocx
Not this c:\windows\system32\mscomctl.ocx
Not this c:\windows\system32\mscomct2.ocx
c:\windows\system32\comct332.ocx
c:\windows\system32\comctl32.dll

The two others are actually the v6.0 files

The two ocx files are wrappers for the dll.  

Windows XP and Office 2003 does not have these files registered, in fact a couple of them are missing.  

They come with Visual Basic and Office developer amongst other things and I believe that they can be re-distributed (as I found an MS download containing them) as long as it is redistributed intact - with the readme etc.  

You need to register the two OCX files.  The DLL doesn't need registering (in fact it won't register)

regsvr32 path\comctl32.ocx
regsvr32 path\comct232.ocx

This then allows you to use the v5.0 controls.  

This is an issue for some people as the way the nodes are added to the treeview is different between the versions and substituting the newer treeview control would mean recoding - as well as replacing the imagelist too.  

0
 

Author Comment

by:johnnyboyleeds
ID: 11832721
0
 

Author Comment

by:johnnyboyleeds
ID: 11890491
How do I cancel this and get my points back as I have answered it myself?
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 12870024
Closed, 125 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

Technology Partners: 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

Title # Comments Views Activity
MsgBox 2 61
bit defender blocks good applications 2 107
VB6 - Compare and highlight cell not the same 3 57
how to Classify of email (pdf attachments) 7 50
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

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