treeview problem

S

sapta

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
 
P

Paul

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
 
G

Gargamil

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
 
P

Paul

I'm no expert in registering controls (hopefully someone who is can shed
more light on the matter) but I would check:

* That the reference was to the correct version of the OCX (I think it has
been updated a few times in various releases).

* Use regsvr32.exe from the Run menu to register the OCX with Windows.

* Do a search for the OCX to see if you have multiple versions (I believe
that the application directory is checked first, and then the Windows System
folder).

* Try rebooting after registering.

--
Paul
Visit my website www.pdtech.co.uk for developer resources.
Gargamil said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top