473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Subreport control won't display correctly on main report

On the subreport, records are grouped by WorkDate. In the WorkDate header
there is a textbox named DateCounter with the control source =1 and running
sum set to yes. In either the report footer or the WorkDate footer (I tried
both with no difference) is a textbox called DateCount, the control source
of which is =DateCounter. If this subreport is run as a seperate report,
DateCounter shows 1...2...3...etc for each seperate WorkDate and DateCount
in the footer will show the same number as the last WorkDate grouping. On my
main form I have a textbox, Days, with a control source of
=[rptSummaryLaborSubreport]![DateCount]. In theory, this should display a
number that corresponds to the number of WorkDate groups in the data subset.
Also the same as the field DateCount on the subreport. It does not, however,
but rather displays 1 everytime. What am I missing?
Dec 23 '06 #1
2 2337
Possibly, you are referencing the Control improperly.

From the main Report, where sbrSubRep is the name of the Subreport Control,
try

sbrSubRep.Report!DateCount

Larry Linson
Microsoft Access MVP

"Jimmy" <no**@none.comwrote in message
news:fI*******************@fe08.news.easynews.com. ..
On the subreport, records are grouped by WorkDate. In the WorkDate header
there is a textbox named DateCounter with the control source =1 and
running sum set to yes. In either the report footer or the WorkDate footer
(I tried both with no difference) is a textbox called DateCount, the
control source of which is =DateCounter. If this subreport is run as a
seperate report, DateCounter shows 1...2...3...etc for each seperate
WorkDate and DateCount in the footer will show the same number as the last
WorkDate grouping. On my main form I have a textbox, Days, with a control
source of
=[rptSummaryLaborSubreport]![DateCount]. In theory, this should display a
number that corresponds to the number of WorkDate groups in the data
subset. Also the same as the field DateCount on the subreport. It does
not, however, but rather displays 1 everytime. What am I missing?

Dec 24 '06 #2
"Larry Linson" <bo*****@localhost.notwrote in message
news:gcojh.1153$4e.11@trnddc04...
Possibly, you are referencing the Control improperly.

From the main Report, where sbrSubRep is the name of the Subreport
Control, try

sbrSubRep.Report!DateCount
No, the reference is correct, as above, and I do not get an error (#Error or
#Name) it simply displays 1 on every record.
Dec 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Edwards | last post by:
I am trying to use an existing report as a subreport in another report. I have the subreport added to the main report, but the only thing that shows up where the subreport should be is the name of...
3
by: CSDunn | last post by:
Hello, I currently have an Access 2003 ADP Report/Subreport set up in which I have 12 subreports in a single main report that are located in a group header called 'PermnumHeader' (Permnum would be...
1
by: Marie | last post by:
How do you display a total from a subreport on the main report. If it makes a difference, the total is a total of a calculated field (Qty * Price). Does the total on the subreport go in the...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
3
by: lorirobn | last post by:
Hello, I have a report which uses a subreport. When I run the report, I get "Enter Parameter Value" error message for "tblGuestRoom". I click ok and the report seems to work fine. I...
1
by: Beowulf | last post by:
I'm having some difficulty and I can't for the life of me figure out why. I have a main report, rptMain, that contains a report header (displays the AppTitle), 3 group headers (one is a header...
4
by: MLH | last post by:
I have a report and on it, a subreport control Main Report Name: rptInvoiceMain Sub Report Name: rptInvoiceSubReport SubReport Control Name: rptInvoiceSubReportCtl The...
3
by: Coll | last post by:
I have a report that I run every quarter. When I opened it this quarter, one of the subreports is not displaying. No error message - just nothing displays where the subreport data should be. If you...
11
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Master Report is: Me.RowSource = "TableOrQueryName"
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.