You need three files in your c:\windows\system32 (or c:\winnt\system32)
folder to get Treeview/Listview functionality. Both of the controls are
encapsulated in mscomctl.ocx which has a dependency file mscomctl.dep and
also requires a matching comcat.dll. As long as mscomctl.ocx and comcat.dll
are properly registered on your PC, things should work within Access. If
they're installed properly, you should see the two controls you need in the
dialog shown when you select Insert/ActiveX Control from the Access Menu for
a form.
mscomctl.ocx is self-registering so, in Windows, Start/Run
"c:\windows\system32\regsvr32.exe" "c:\windows\system32\mscomctl.ocx" will
manually register it, if necessary. comcat.dll is also self registering
using the same approach. If the three required files are in your system32
folder and you've tried using regsvr32.exe but the controls still aren't
listed in the Access Insert/ActiveX Control dialog, you can try the
Tools/ActiveX Controls/Register from the Access Menu. Failing all that,
installing VB6 will make the controls available to Access.
If you're not installing for the English language, open up mscomctl.dep in
Notepad and look at the other dependency files that are required.
When you deploy to another workstation, you can include the mscomctl.ocx in
your setup package or go through the same manual procedure as for your
development workstation if the setup fails to register the ocx properly.
Installing VB6 on a second PC would work but I think that would require a
separate license for VB.
If I missed anything, please let me know.
hth,
David Straker