Results 1 to 2 of 2

Thread: Bring number from a Sub Report to the Main Report

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2005
    Posts
    259

    Bring number from a Sub Report to the Main Report

    I am trying to get the 6, which is shown under column B to show where I have the red number circled.



    I thought I could go to the Sub Report and do this:

    Shared NumberVar colBx = Sum ({@CkColB}, {TicketItems.ServiceCode})

    Then on the main form I am trying to get the number like this:

    Shared numberVar ColBx

    But I am only getting 0's in return. What am I doing wring?

  2. #2
    New Member
    Join Date
    Feb 2007
    Location
    Greenville, SC
    Posts
    13

    Re: Bring number from a Sub Report to the Main Report

    Are the subreport and the data in the same section (e.g. Details). The problem may be that the data in the main report is being obtained before the subreport runs (so you get a zero).

    Try splitting the section into two parts and move the subreport into the first section. This will force the subreport to run before your main report data is obtained.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width