Results 1 to 4 of 4
  1. #1
    obiron is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    8

    Question building tree views from a table and user interface design

    Hi guys,



    first post here....

    I have 47 business units to report on. For some reports these units need to be aggregated together but the aggregations are different for different report types. I am fine with creating a table to hold the parent-child relationship:

    ID,
    AggregateTypeID,
    ParentUnitID,
    ChildUnitID,
    sortOrder....


    What I need is some guidance on the best way to present this information and to graphically build the trees. In a perfect world, I would choose an aggregation type and then present the tree as is as a series of folders and drag and drop each unit into its group folder so that it works like moving folders around in windows explorer left hand pane.

    Can I do this in Access 2007?. The database is actually a set of MSSQL2000 linked tables (soon to be MSSQL2005)

    acceptable constraints are:
    The root of each node is a business unit (i.e. all BUs report into a single BU)
    each node only goes one level deep (recursive navigation is therefore not required)

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Scroll to the bottom of this link and there is a tutorial on building Tree Views in Access.

    http://www.datapigtechnologies.com/AccessMain.htm

    Alan

  3. #3
    obiron is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    8
    Alan,

    Thanks for that, very helpful in terms of the OCX controls that need to be added to the project. The demo takes a database and builds a tree view table from the current hierachy. I want to do it the other way round.
    I have 47 top level nodes and want to convert some of them to child nodes. I can do the VBA to build the table, but how would you go about the drag and drop process a bit like windows explorer.

    Can I drag form elements around the form in view mode using mousedown?
    If I can, can i measure the XY coordinates on mouseup and compare them to other form elements. If so then I can store the order in the database.

    Or am I making it too complicated?

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    This is beyond my knowledge base. I knew about the site and hoped it would be helpful. Perhaps, someone with experience in this area will chime in. Good luck.

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

Similar Threads

  1. User Interface
    By scubagal in forum Access
    Replies: 3
    Last Post: 07-26-2011, 02:21 PM
  2. User interface to search for records in table
    By proexpert in forum Access
    Replies: 1
    Last Post: 03-08-2011, 09:24 AM
  3. Design multi user database - avoid simultaneity transactions
    By snoopy2003 in forum Database Design
    Replies: 2
    Last Post: 02-27-2011, 12:03 AM
  4. Replies: 0
    Last Post: 05-26-2010, 05:46 PM
  5. Alter Views/Queries in MDB from C# application.
    By avadhutkhavare in forum Access
    Replies: 0
    Last Post: 11-03-2009, 04:07 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