Results 1 to 6 of 6
  1. #1
    AJM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    3

    Milti Level Report Structure Question

    Hi All,

    I have been trying to figure this out for a while.



    I have a complex query that basically generates the following data;

    Part Number, Assembly Level
    PN0001, 1
    PN0002, 2
    PN0003, 2
    PN0004, 1
    PN0005, 2
    PN0006, 2
    .
    .
    Etc.

    I am trying to create a report that will display the data like this;
    PN0001
    -----PN0002
    -----PN0003
    PN0004
    -----PN0005
    -----PN0006
    .
    .
    Etc.

    Problem is, I get this;
    PN0001
    PN0004
    -----PN0002
    -----PN0003
    -----PN0005
    -----PN0006

    I've tried to use grouping Etc. but can't quite get it to do what I want, any help would be appreciated.
    Apologies if this is all a bit vague, not sure what other info will help.

    Thanks in advance.

    AJM

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I would think there would need to be another field that related the level 2 items to their parent, and that field would be the primary grouping field. A level 1 would either have itself or Null in that field, either of which could be used.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AJM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    3
    You are right, there is another field that links the records together (Used on).
    I need it to print level 1 then all the related Level 2's, then move onto the next Level 1, Etc.

    I seem to have all the data in the query, but can't quite get it to do what I want?

    Cheers,
    AJM.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Have you tried grouping first on that other field? Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    AJM is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2013
    Posts
    3
    I am just about to have a go with that. Unfortunatly I am not able to post the DB.

    Thanks for your help so far.

    If I have no joy, i'll try and remove the sensitive data and post the DB.

    Have a good weekend.

    Cheers,
    AJM.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    No problem. I think the first grouping has to be on that field to keep the level 2's with their level 1.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Question on how to structure a database
    By ExterminatorJeff in forum Database Design
    Replies: 3
    Last Post: 03-17-2012, 06:34 AM
  2. Structure/Relationship Question? Please Help...
    By Imgsolutions in forum Access
    Replies: 2
    Last Post: 06-27-2010, 09:52 PM
  3. Database Structure | Best Practice Question
    By davidson12 in forum Forms
    Replies: 0
    Last Post: 11-05-2009, 03:29 PM
  4. An import question above the table structure
    By Shag84 in forum Import/Export Data
    Replies: 2
    Last Post: 08-20-2009, 12:21 PM
  5. User level security question
    By genesis in forum Security
    Replies: 1
    Last Post: 07-08-2009, 10:10 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