Results 1 to 2 of 2
  1. #1
    cristip is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Posts
    1

    Unhappy Treeview connection (NodeClick Event)

    Hello,



    First I would start with the fact, that I am quite new to the VBA programming language, normally I tried to avoid it or replicate something existing.
    In this case I ran out of any ideas.

    I have a form containing 2 treeviews. The difference between them is:

    1) Parent + Level 1 Child (treereqs1)
    2) Level 1 Child as Parent + all other childs (treereqs2)

    Now I have two things which I will never be able to program with my knowledge on my own:

    1) If user selects a Level 1 Child from the treeview 1, the second treeview will populate that child with all its further childs and not showing the rest of question (Level 1 Child).
    2) When the user reaches the last level of a child, to jump automatically to the next question in treeview1.

    If anyone would want to spend some time to support me with the coding, I would be very greatfull.

    Cristi

    TreeView.zip

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    1) If user selects a Level 1 Child from the treeview 1, the second treeview will populate that child with all its further child and not showing the rest of question (Level 1 Child).
    You need to modify the SQL code for second treeview to return children matching the selected child in first treeview. Try with a query that will return the results you want.If that query returns the correct results, use that SQL as recordsource for loading treeview. I think you need to look at your table structure once again, I hope I am wrong on this one.

    Couldn't follow the second question.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 11-20-2014, 11:21 AM
  2. Treeview
    By Daniela in forum Forms
    Replies: 12
    Last Post: 01-24-2012, 04:07 AM
  3. Treeview Example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-30-2010, 10:58 PM
  4. P&P Treeview
    By Teejay in forum Programming
    Replies: 0
    Last Post: 10-04-2009, 03:54 PM
  5. Treeview Control: Nodeclick --> Navigating to Record
    By greekandromancoins in forum Programming
    Replies: 0
    Last Post: 02-10-2006, 10:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums