Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tree view control (Access 97)

    Hi,
    I have never used tree view control before and I need to use it in my access application and dynamically fill the parent nodes and child nodes. Can somebody tell me a link or code on "how to do it?"

    Thanks
    Isha

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tree view control (Access 97)

    In the first place: a treeview control has to be manipulated in VBA code, you can do little with it in design mode. The code to be used is not trivial, and there is no IntelliSense to help you; you should be fairly familiar with VBA programming.

    See for instance <!mskb=167309>Microsoft Knowledge Base Article 167309<!/mskb> for an example of how to populate a treeview control, and <!mskb=163511>Microsoft Knowledge Base Article 163511<!/mskb> for a downloadable Treeview Wizard.

    I have also attached a demo Access 97 database (zipped) with an example based on the Northwind tables.
    Attached Files Attached Files

  3. #3
    New Lounger
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tree view control (Access 97)

    I am familiar with VBA code. I tried to open the form with tree view and it is giving me error "Can't find project or library" at this line of code:
    Dim objNode As Node
    How can I open it.
    Thanks

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tree view control (Access 97)

    Open the module for the form.
    Select Tools/References...
    You'll probably see an entry MISSING: Microsoft Windows Common Controls 6.0.
    Clear the check box, then click Browse...
    In the Files of Type dropdown list, select ActiveX Controls (*.ocx)
    Locate and select MSCOMCTL.OCX; its default location is your system folder (you can use Find from the Start menu to search for it).
    Click OK.

    Post back if this doesn't work.

  5. #5
    New Lounger
    Join Date
    May 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tree view control (Access 97)

    Thanks...it worked

  6. #6
    2 Star Lounger
    Join Date
    Aug 2001
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Tree view control (Access 97)

    So what is treeview?

    Snoopily
    Catharine

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Tree view control (Access 97)

    TreeView is what you see in the left hand pane of Windows Explorer: a structure that can display a hierarchy of variable depth. The right hand pane of Windows Explorer is an example of a ListView.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •