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
=[rptSummaryLabor Subreport]![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? 2 2367
Possibly, you are referencing the Control improperly.
From the main Report, where sbrSubRep is the name of the Subreport Control,
try
sbrSubRep.Repor t!DateCount
Larry Linson
Microsoft Access MVP
"Jimmy" <no**@none.comw rote in message
news:fI******** ***********@fe0 8.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
=[rptSummaryLabor Subreport]![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?
"Larry Linson" <bo*****@localh ost.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.Repor t!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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the subreport. In reading
the Access help files, it sounds like there should be LinkChildFields and
LinkMasterFields proprties in the propert sheet for the subreport. However,
neither of these properties are there for the subreport.. I used...
|
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 the same as a numeric 'StudentID').
All subreports initially have their visible property set to 'No'.
I have a macro that evaulates the current value of a field in the detail
section of the main report called 'Grade' and a field in the same...
|
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 pagefooter or report footer? Say the
total is shown in a texrbox named MyTotal and the subreport control is named
MySubreportControl, what exactly do I put in the control source of a textbox
on the main report to show the total?
Thanks For All Help!
...
|
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 the answer was just going to be setting
some Keep Together properties to Yes. Alas, it was not to be.
It turns out that the report in question is actually a combination of 2 other
reports based on different tables. The reports should follow one...
|
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 narrowed down this error to the Link Master Fields property setting,
when I tried the same scenario with form/subform. It gave me error:
'The Link Master fields property setting has produced this error: The
object doesn't contain the Automation object...
| |
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 for the "report version" and is being used for a cover
sheet, one is a category header, and the other is an item header),
about 6 subreports in the Details section, 2 non-empty group
footers, a page footer and a report footer.
The 6 subreports in...
|
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 subreport contains 2 fields - a text field where line items
sold are listed and a currency field where the price per item
is shown. The subreport control displays these two fields
when the main report is opened.
|
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 run
the subreport on its own, it displays fine. It just won't display on
the main report. I tried deleting and readding the subreport. No luck.
There are other subreports on the main one and they are acting fine.
Any ideas? (Using Access 2000)....
|
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"
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |