Results 1 to 3 of 3
  1. #1
    halt4814 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    19

    Creating a report where some records have multiple subrecords

    I have two tables, one [NAME] containing ID numbers with persons names, and another [ORDER] containing ID numbers and orders placed. I am trying to create a report that has the ID number and persons name in the report header then in the detail section it lists all the order that that particular person placed.

    When I did this, it just repeated the entire header and detail for as many order's placed there were.

    For example, it showed

    ID: 23


    Name: MDH

    Order Quantity
    12 2
    13 5
    32 1
    -----------------
    ID: 23
    Name: MDH

    Order Quantity
    12 2
    13 5
    32 1
    -----------------
    ID: 23
    Name: MDH

    Order Quantity
    12 2
    13 5
    32 1



    The report just repeats the data three times. How can I make it so it only displays each ID record once with it's appropriate subrecords below it?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Use report Grouping & Sorting functionality. Create a group on the ID field, put textboxes for ID and Name in the group header, other data in detail section.

    Or

    Textboxes on report have a HideDuplicates property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    halt4814 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    19
    Worked! Thanks!

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

Similar Threads

  1. Replies: 21
    Last Post: 04-03-2013, 12:51 PM
  2. Replies: 3
    Last Post: 10-18-2012, 02:25 PM
  3. Replies: 2
    Last Post: 02-28-2012, 12:43 PM
  4. Creating multiple records from a single form
    By secretary in forum Forms
    Replies: 8
    Last Post: 07-18-2011, 04:03 PM
  5. Replies: 4
    Last Post: 01-25-2010, 04:14 PM

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