Timely message. I spent hours today trying to get this OCX file
registered
so I could set the references to a treeview. I went through the usual
process Tools/ActiveX etc, found the OCX registered it but when I went
back
to set the references the Microsoft Common Controls line was not
available.
I opened another DB I wrote with a treeview and that could see the
registered OCX.
Many hours of frustration / searching the web etc were to no avail. In
the
end I had to copy the old DB, strip it of all the forms, queries etc and
import my new DB into it. Checked and the registered ActiveX was now
visible and it works like a charm.
One question - why would it not register the ActiveX??? Clue: the
original
DB was in Windows 2000/Office2000 new DB in XP/2002. Still would like an
answer though.
g
Paul said:
The TreeView control is not part of Access, but is an 'add in control'.
If the control is not present (or perhaps if only an earlier version of the
control is present) on a PC you will get the message you describe below.
On all the machines that will run your application you need to ensure
that
COMCTL32.OCX is present and registered. I believe that this file is
freely
redistributable.
To register a control you can issue the following command from Run on the
Start menu:
Regsvr32.exe [path to the file you are registering]
I believe the norm is to place the file either in the same directory as you
app or in the windows\system32 folder.
I have a few notes on use of the TreeView on my website (see sig) under
Projects, then IT Competencies application.
HTH
--
Paul
Visit my website
www.pdtech.co.uk for developer resources.
sapta said:
dear expert,
I create a treeview control in acc97 ,work on
my PC, but not work on some PC with this message
"There's no object in this control !"
what should i do for this ?
thanks in advance
sapta