Results 1 to 4 of 4
  1. #1
    SamanthaSamuels is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    4

    Calculation using Child and Parent

    Hi.



    I have a report that has a child report in it. I want to calculate a percentage from the main and child report. Perhaps I just don't know the syntext.

    Does anyone know how this can be accomplished?

    Thanks in advance.

  2. #2
    ryan1313 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    20
    Where do you want the calculation? If in the detail of the Parent, create a text box for the calculation and in the On Print event of the details properties add the code:

    Me.txtCalculation = [Reports]![YourParentReportName]![YourChildREportName].Report.[YourChildFieldName] / Me.txtFieldName

  3. #3
    SamanthaSamuels is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    4
    Thanks! It worked! Awesome!

  4. #4
    ryan1313 is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    20
    You are welcome! Glad I could help!

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

Similar Threads

  1. Parent/Child Append Question
    By davidson12 in forum Access
    Replies: 6
    Last Post: 01-15-2015, 08:15 PM
  2. Replies: 0
    Last Post: 05-26-2010, 05:46 PM
  3. Parent/Child subform
    By Jerry8989 in forum Forms
    Replies: 1
    Last Post: 09-18-2009, 07:27 AM
  4. SubForm to Parent
    By henryclay in forum Forms
    Replies: 2
    Last Post: 11-15-2006, 09:44 AM
  5. SubForms to Parent
    By henryclay in forum Forms
    Replies: 2
    Last Post: 10-27-2006, 07:14 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