Results 1 to 7 of 7
  1. #1
    Xonos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    15

    Question Form Question (Access 2010) [Solved]

    Access 2010 64bit

    This is simple I am sure however considering I am new to Access, I do not know the proper terminology to search for this (as I have tried). Perhaps someone could point me to the right direction to find out how to do this...

    Ok, so I have a table that contains orders (Bill of Ladings) and in the Bill table, there is a one-to-many relationship with the Bill of Lading Products table. I have all of the "Bill of Lading Table" information in the header of a report however I need to insert multiple blocks of specifically formatted information from the corresponding Bill of Lading Products table. I have attached a screenshot that I photoshopped real quick of what I have so far and what I want to add to the detail section of the report.

    So I guess my question is, what terminology would I use to search for this particular need? I know how people are on forums pleading that new members use search before wasting others time so I ask you this rather than exactly how to do it. Forgive me if the image is too large, I have many monitors. Oh and by the way, I do realize my database is in SERIOUS need of normalization but for now - considering my deadline... this will have to happen once I complete the project so that I can dedicate the time to learn how to properly do this.



    Last edited by Xonos; 02-27-2012 at 08:11 AM. Reason: This is solved now.

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    What is your actual need?

    Here are some things you can do straight off:
    - put the parent information on the detail part of the form.
    - create a subform for the child information and add that to the detail part of the form
    - link the two forms (Properties - Link Master/Link Child)

  3. #3
    Xonos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    15
    I've worked a bit with sub forms however what I need is what you see in the detail portion of the page. I drew all of that in photoshop real quick... How do I get the linked table fields (Bill of Lading Product Details Table) to format the way I want (like you see in the example) and automatically add a new section per each row that matches by [BOL Identification ID]<1---8>[BOL ID] (as you can see the one-to-many relationship on the right). It works perfectly with list boxes, sub forms and other related objects but I don't know the terminology for what it is that I want.


    So, let's assume in the report with the primary source being the [Bill of Ladings] table - the filter applied is [BOL Identification ID] = 22.

    [HEADER]
    In the header, it will display Shipper and Recipient information as well as a few fields that belong to [Bill of Ladings] table.
    ----------------------------- I already have this part working flawlessly.... but the next part, I don't yet understand.
    [DETAILS]
    In the details section, I want specifically formatted rows displaying the related rows between [Bill of Ladings] table and [BOL Product Details] to populate as a list like you can see in the example.

    1.> [BOL Product Details] where [BOL ID] = [BOL Identification ID]
    2.> [BOL Product Details] where [BOL ID] = [BOL Identification ID]
    3.> [BOL Product Details] where [BOL ID] = [BOL Identification ID]
    4.> [BOL Product Details] where [BOL ID] = [BOL Identification ID]
    5.> and so on...

    So, if there are only 3 matching rows in the [BOL Product Details] table, only 3 sections will appear displaying the corresponding data. - In the example, you'll see what I mean by "Specifically Formatted".. I mean that I want Units, Weight, UOM, Product Name and other related information to appear in specific positions per each result.

  4. #4
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    A subform will do this for you - what is your difficulty with them? Can I help you to create it?

  5. #5
    Xonos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    15
    Well, would I use a subform on a report? I have all of my forms created for adding, deleting and managing the table data. My difficulty is not understanding the process to add what I need to the detail of the report. Do I create a subform or a sub report? And if I do that, how do I get it to repeat the information formatted exactly the way I want it?

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You design the subform, or the subreport, in the exact format that you want the fields to be displayed. You put the child table/query as the record source. On the main form or report the record source will be the parent table/query. Then you link the main to the sub by using the Link properties - the fields you use to link with will be whatever is common between the two and what you want the sub to be filtered by. Hope this is making better sense.

  7. #7
    Xonos is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    15
    Ahhhhh... You're right. It automatically expanded... Thank you very very much for your help!

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

Similar Threads

  1. Replies: 1
    Last Post: 11-21-2011, 08:39 PM
  2. Question access 2010 macro & open form
    By Grek in forum Access
    Replies: 3
    Last Post: 10-30-2011, 01:58 PM
  3. Access 2010 Forms Command button Question
    By RayMilhon in forum Forms
    Replies: 3
    Last Post: 09-12-2011, 03:38 PM
  4. access 2010 vba question
    By jscriptor09 in forum Access
    Replies: 1
    Last Post: 08-26-2011, 06:57 AM
  5. ACCESS 2010 vba question
    By jscriptor09 in forum Access
    Replies: 1
    Last Post: 07-26-2011, 03:55 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