Results 1 to 7 of 7
  1. #1
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38

    Printing entire customer records gathered from main form and two sub forms

    H everbody,
    I'm new in access. I have a data entry form consists of a main form ( involves some information about the costumer) linked to a sub form (order ID and Date), also the sub form is linked to another sub form called order detailed, where, when I choose the costumer, the order sub form shows me the number of the orders that belongs to that costumer, and also when i navigate through the the orders, the corresponding details come out from the order details sub form. i.e., only the corresponding details of specific order come out at each order record navigation. What i want here is some suggestions in how print out one costumer information with one order and the corresponding details that belongs to that order in a report. Your help really appreciated.



  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    Create the query and use the "Group & Sort" option in report and group by Customer and the corresponding details that belongs to that order will be listed below it. Then filter the report when opening it so that only the required customer's orders are printed. See http://www.techonthenet.com/access/r...filter_rpt.php

  3. #3
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38
    Quote Originally Posted by falahsalih View Post
    H everbody,
    I'm new in access. I have a data entry form consists of a main form ( involves some information about the costumer) linked to a sub form (order ID and Date), also the sub form is linked to another sub form called order detailed, where, when I choose the costumer, the order sub form shows me the number of the orders that belongs to that costumer, and also when i navigate through the the orders, the corresponding details come out from the order details sub form. i.e., only the corresponding details of specific order come out at each order record navigation. What i want here is some suggestions in how print out one costumer information with one order and the corresponding details that belongs to that order in a report. Your help really appreciated.
    I tried what you have suggested to me, it works well with the customer record set, however, when i select the second row of the order sub form , it keep show me the first row and its corresponding information of the order details in the report. Can more help please ??

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    You can add the OrderID to the groupby clause to achieve this. Another option is to create a sub-report for the order details and use it in this report with the Order Id linked to foreign key in order details.

  5. #5
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38
    Quote Originally Posted by amrut View Post
    You can add the OrderID to the groupby clause to achieve this. Another option is to create a sub-report for the order details and use it in this report with the Order Id linked to foreign key in order details.
    Ok, let explain more, the problem is with customer vs (order and order details) not order vs order details
    when i move to the second row of the orders table (from data entry form) which is refer to the second order of the same customer name, it shows me the first order and its details in the report

  6. #6
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    when i move to the second row of the orders table (from data entry form) which is refer to the second order of the same customer name
    I am unable to follow this. Is the report loaded when you move to next order ? Can you post your db or screenshot of what is happening/not happening ?
    The report can show all the orders belonging to the customer or a particular order based on the criteria you decide. The field you decide to apply criteria should be in the report.

  7. #7
    falahsalih is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    May 2014
    Posts
    38
    Quote Originally Posted by amrut View Post
    I am unable to follow this. Is the report loaded when you move to next order ? Can you post your db or screenshot of what is happening/not happening ?
    The report can show all the orders belonging to the customer or a particular order based on the criteria you decide. The field you decide to apply criteria should be in the report.
    armut , please have a look at my new post about the same issue https://www.accessforums.net/access/...tml#post225927

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

Similar Threads

  1. open other forms in form main
    By Milade8080 in forum Forms
    Replies: 2
    Last Post: 03-10-2014, 02:34 PM
  2. Replies: 6
    Last Post: 12-11-2013, 09:27 PM
  3. Replies: 5
    Last Post: 07-09-2013, 11:16 AM
  4. Replies: 12
    Last Post: 07-18-2011, 12:47 PM
  5. connecting many sub forms in one main form
    By Dasun in forum Programming
    Replies: 2
    Last Post: 07-01-2011, 02:39 PM

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