ImageListCtrl

R

Rudy W.

In a form in a Access databse (Access 97 version) a
ImageListCtrl is used:
OLEObject: ImageListCtrl
Verb: 0
Class: COMCTL.ImageListCtrl.1

After conversion to Access 2002, I get follow error:

Error 2683 There is no object in this control

With which ActiveX control can I rep^lace this 'older'
ImageListCtrl in Access XP to have the same functionality?

Thanks

R.W.
 
A

Arvin Meyer

Yes, delete and replace the control with the current version which is
registered. The alternative is to import a copy of the comctrl dll which is
working on the Access 97 version onto your current machine and register it.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
R

Rudy W.

Thanks Arvin,

I deleted and replaced the controls with the current
version of it.
But my code manipulating them doesn't work any more:

The two controls are:

Name: FileImage
OLEClass: ImageListCtrl
Verb: 0
Class: MSComctlLib.ImageListCtrl.2

and

Name: TreeView
OLEClass: TreeCtrl
Verb: 0
Class: MSComctlLib.TreeCtrl.2

The original code:

....
Dim objTreeView As Object
Dim objListImage As Object
dim dbCurrent as DAO.Database

On Error GoTo Err_Load


Set objListImage = Me!FileImages
Set objTreeView = Me!Treeview
Set dbCurrent = CurrentDb

' Set TreeView control ImageList property
objTreeView.ImageList = objListImage.Object
objTreeView.Sorted = True

I get this error now:

Error: 35613 ImageList must be initialised before it can
be used

So it seems that the functionality of the new and the od
version is not tye same.

Registrating the old OCX is possible on my PC but not on
the users PC (not allowed: policy)
 

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