Results 1 to 8 of 8
  1. #1
    kent is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    34

    Access Treeview Wizard

    In case anyone was interested, I came across a wizard that Microsoft built to help create Treeview controls in Access forms. It's only for Access 97. Out of curiosity I tried it but thought it was unintuitive, as they want to have each level of nodes to come from a different table. I attached it if you wanted to try it out.

    Click image for larger version. 

Name:	Treeview.JPG 
Views:	40 
Size:	131.6 KB 
ID:	41725
    Attached Files Attached Files

  2. #2
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Anyone know why m$ didn't maintain treeview controls? Sometimes I feel like could really use them.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    suspect because they are activeX and use commoncontrols - which doesn't or didn't work with 64bit access. There are a number of good vba solutions about. This is quite a good one
    https://www.jkp-ads.com/articles/treeview.asp

  4. #4
    kent is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    34
    Is the idea that there is an included wizard to implement the treeview in your database, or would you just copy out his vba code from the sample and rework it? It wasn't clear to me when I looked at the site.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    You need to copy the code and modify to your requirements. The point is that it does not use an active X control but a form which can be used as a subform. Active X controls are generally considered to be unsafe and often version specific.

  6. #6
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Quote Originally Posted by Ajax View Post
    You need to copy the code and modify to your requirements. The point is that it does not use an active X control but a form which can be used as a subform. Active X controls are generally considered to be unsafe and often version specific.
    But I'm looking at it now and it does use an active x control... some kind of images container? OLE Class: MS Forms 2.0, Class: Forms.Frame.1 Is this considered a 'safe' active x control to use?

  7. #7
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    I hadn't realised - the link I provided is one that is often provided as a reference

  8. #8
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    There are a couple of VBA only treeview's about - an excellent discussion and examples are available here: https://www.access-programmers.co.uk...8#post-1683317
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Upsizing Wizard in MS Access 2013
    By BudMan in forum Access
    Replies: 3
    Last Post: 05-02-2015, 01:18 PM
  2. Replies: 1
    Last Post: 01-05-2015, 07:05 AM
  3. Access 2000 Cannot Start Any Wizard
    By MartinR362 in forum Forms
    Replies: 5
    Last Post: 11-27-2013, 07:29 AM
  4. Treeview control wizard
    By masoud_sedighy in forum Programming
    Replies: 10
    Last Post: 06-20-2013, 11:17 AM
  5. How wizard in access been made
    By miziri in forum Programming
    Replies: 1
    Last Post: 08-20-2009, 03:14 AM

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