Solved

Common Controls V5.0 SP2 in MSAccess 2003 ?

Posted on 2004-08-17
9
449 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
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

821 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