Defining a Data Type

  • Thread starter Thread starter JamesJ
  • Start date Start date
J

JamesJ

How do I define this data type??

When I compile I get the following error:
'User defined type not defined'

at the following line:
Dim objCurrNode As Node

I think I need to reference this data type in tyhe References
dialog but I don't know which one it is.

Thanks,
James
 
Hi,
Have you added a Treeview control to one of your forms?
If you have, then you should have a reference to MSComctl.lib which will
define the Node class.
 
I did add the treeview control to a form in a
new db but I'm not sure of the name I need to reference in the
References dialog. I searched my system for MSComctl.lib and
didn't find it.
I believe it's in one of my cds... I'll look

James
 
Hi,
Usually when you add a treeview control, the appropriate reference is added.
Are you sure you don't already have a reference to one of the common control
libraries?
 
I did find mscmctl.ocx. None of the checked items
in the Reference dialog is mscomctl.lib or comctl.lib
and I can't find either on my system.

James
 
I don't get an error anymore. I deleted the form and
created a new one and based the form on a table.
The form was originally imported from another database
although I'm not sure why it's ok now

James
 
In my A2002, it is "mscomctl.ocx" but ther must be something worng with your
Access installation as the above is added into the References automatically
as soon as you add the TreeView Control on your Form.
 
I found that file. Perhaps I wasn't asking the question properly.
Now that it is being referenced correctly I found out that mscomctl.ocx
is the Microsoft Windows Common Control 6.0. I didn't know this.
Now I do.

Thanks,
James
 
Back
Top