Treeview SubChild Node.

LEXCERM

Registered User.
Local time
Today, 18:30
Joined
Apr 12, 2004
Messages
169
Hi there,

I'm venturing into the abyss of treeviews and have read many threads on this subject. I have two questions to ask regarding the attached sample db, if anyone can help me please.

1) How can I adapt the existing code and create subnodes (or sub child nodes). For example, how can I create a sub-node of OPEN FORM2?
2) What is the syntax for an ONCLICK event, i.e. by clicking on OPEN FORM2 I want it to open FORM2?

Thanks in advance,
Paul.
 

Attachments

Update.

Okay, I have figured out how to use the NodeClick event to open forms etc.



Code:
Private Sub TreeView0_NodeClick(ByVal Node As Object) 

Select Case Node.Text

    Case "open form2"

    DoCmd.OpenForm "form2"

    Case "open form3"

    DoCmd.OpenForm "form3"

End Select

End Sub



All I now need to do is figure out how to create subchilds.



Rgds,

Paul.
 
Lagbolt,

Thank you very much for your time!

It's exactly what I am looking for. I will read and digest your code and I hope I can get back to you if I have any questions.

Thanks again!

Rgds,
Paul.
 
I'm around. Best o' luck.
Mark
 
Another thanks

Thanks also from me - I was just looking for the exact same thing. This forum is great!

Tom
 

Users who are viewing this thread

Back
Top Bottom