473,383 Members | 1,832 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,383 software developers and data experts.

Force a report to wait before formatting?

Is there a way to force access to wait a specified time before making a
calculation?

On my report there is a subreport with a number of calculation on it. One if
which is a count of certain records using a text control with a running sum.
When I display the subreport on my main report, I can see the correct count
but when I make a reference to that control on the main report, I simply get
the number 1. I am sure that the reference to the control is correct as I
have several other references to other controls on the subreport and they
work fine. I suspect the problem is that access reads the subreport control
before the running sum calculation/count is complete thus displays 1.
Jan 27 '07 #1
3 1819
Jimmy wrote:
>Is there a way to force access to wait a specified time before making a
calculation?

On my report there is a subreport with a number of calculation on it. One if
which is a count of certain records using a text control with a running sum.
When I display the subreport on my main report, I can see the correct count
but when I make a reference to that control on the main report, I simply get
the number 1. I am sure that the reference to the control is correct as I
have several other references to other controls on the subreport and they
work fine. I suspect the problem is that access reads the subreport control
before the running sum calculation/count is complete thus displays 1.

The main report needs to reference the running sum total in
the subreport's footer section.

--
Marsh
Jan 27 '07 #2

"Marshall Barton" <ma*********@wowway.comwrote in message
news:mq********************************@4ax.com...
The main report needs to reference the running sum total in
the subreport's footer section.
I have set the control on my main report to reference both the calculated
control on the subreport (which is located in the subreports report footer)
and to reference the running sum control on the subreports detail section
and both give the same result - 1:

=IIf(IsError([rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount]),"","("
& [rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] & ")")

where [rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] is the
control in the subreport report footer

also tried:

=IIf(IsError([rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount]),"","("
& [rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount] & ")")

where [rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount] is the
running sum control in the detail section of the subreport.

If I run this subreport as a stand alone report,
([rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] displays the
correct number.
Jan 28 '07 #3
Jimmy wrote:
>
"Marshall Barton" wrote
>The main report needs to reference the running sum total in
the subreport's footer section.
I have set the control on my main report to reference both the calculated
control on the subreport (which is located in the subreports report footer)
and to reference the running sum control on the subreports detail section
and both give the same result - 1:

=IIf(IsError([rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount]),"","("
& [rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] & ")")

where [rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] is the
control in the subreport report footer

also tried:

=IIf(IsError([rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount]),"","("
& [rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount] & ")")

where [rptSnowAnalysisSubreportPastYear].[Report]![txtStormDateCount] is the
running sum control in the detail section of the subreport.

If I run this subreport as a stand alone report,
([rptSnowAnalysisSubreportPastYear].[Report]![txtStormCount] displays the
correct number.

The only other thing I can think of is you are using A97 or
earlier (or maybe A2K?) and you have code in a report header
event that references the report footer total text box.

If that's not the case, then maybe(?) your main report text
box is not in the same section as the subreport.

--
Marsh
Jan 28 '07 #4

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

Similar topics

4
by: Sami | last post by:
I hope someone will tell me how to do this without having to do any VB as I know nothing in that area. I am a rank beginner in using Access. I have created a database consisting of student...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
8
by: Armando | last post by:
Here's one that's going to leave me bald before long - I have a report (no headers or footers, small detail section) that runs normally when I open it from the database window. When I run it...
16
by: LP | last post by:
Hi, Considering code below. Will it make GC to actually collect. One application creates new instances of a class from 3rd party assembly in a loop (it has to). That class doesn't have .Dispose or...
0
by: comp.lang.php | last post by:
I have a form that when you click the "Generate Report" submit button, it will force download a CSV file, required for this project. On the very same page you also have a "Search" submit button,...
5
by: bob | last post by:
Now this ought to be a simple matter. But nothing's simple in the Net world, I'm finding. In vb6 you could use "!" to force text to upper case in the format function. I've searched the vb.net...
10
by: sara | last post by:
Hi - I have a report that is 14 columnar sub-reports (Line up: Position- holders in each of our 14 locations - Manager, Assistant Manager, Receiving, Office, etc). I output directly to PDF...
6
by: Brett Barry: Go Get Geek! | last post by:
Hello, I have a main report with a Record Source, a DateToday table, that has the current Month and Year. I have about 60 queries, each pulling different data via ODBC, that I am creating...
4
by: J Lagos | last post by:
I want to change the backcolor of textboxes in a report depending on their value. I messed with this for a few hours but I'm not savvy with the syntax for getting at controls in a report. can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.