Solved

Common Controls V5.0 SP2 in MSAccess 2003 ?

Posted on 2004-08-17
9
445 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
  • 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 47
VBA color chart bars 12 65
Add a task in Outlook from access 11 32
Exit a vb6 apps when a calling it apps closes 15 33
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

708 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

20 Experts available now in Live!

Get 1:1 Help Now