|
-
May 25th, 2007, 10:18 PM
#1
Thread Starter
Hyperactive Member
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?
-
Jun 7th, 2007, 11:59 AM
#2
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|