TreeView NodeClick event

  • Thread starter Thread starter MyndPhlyp
  • Start date Start date
M

MyndPhlyp

I am having a bit of difficulty writing a NodeClick event handler for a
Microsoft TreeView Control (v6.0) object . According to my documentation the
Sub should be defined as:

Private Sub object_NodeClick(ByVal node As Node)

When it comes time to compile I get the error:

Procedure declaration does not match description of event or procedure
having the same name.

I know I'm using the correct string for "object" in the above Sub. Just for
grins I slapped together a quick Click event using the same string and it
fired just fine.

I've tried removing the ByVal and even tried removing all the parameter
information but still get the same error. MSDN only confirms what
documentation I already have.

So what is the trick to getting this declared correctly so it will compile
in Access 2000?
 
Hi,
remove procedure declaration you typed, then in left top combo select
treeview control, in right top combo select NodeClick and access will insert
a correct proc declaration
 
Learn something new every day. Thanx. BTW - the parameter definition wanted
to be Object rather than Node.
 
Back
Top