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

Help with #Error in report.

Ron
Hi All,

I've got an aging report where the detail is a subreport on the transactions
for a client. I've got a client name header/footer and the detail is
between those areas. One of the controls in the footer is a label for
"Total of current transactions = " and then the control for totaling the
transactions (that's a sum from the detail subreport's amounts). Then, it
ages it, etc. All works great--except when there are no current
transactions to list. The client will have a previous balance, no
transactions, and the aging. Unfortunately, of course the label prints (not
a problem) but the total is "#Error" and that prints also. Looks kinda
tacky.

Is there a way to allow it to print if this total is a valid number but not
print the "#Error" when it's not?

Info if needed: Access2000. Main report = rptAging. Subreport =
srptDetails. Controls on footer are lblTotalCurTrans and TotalCurTrans
(control source is TransTotal from srptDetails).

TIA for any suggestions.
ron
Feb 6 '07 #1
2 2930
Test the HasData property of the subreport.

Details in:
Bring the total from a subreport onto a main report
at:
http://allenbrowne.com/casu-18.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ron" <ro********************@verizon.netwrote in message
news:A21yh.9772$MH2.4770@trnddc03...
>
I've got an aging report where the detail is a subreport on the
transactions for a client. I've got a client name header/footer and the
detail is between those areas. One of the controls in the footer is a
label for "Total of current transactions = " and then the control for
totaling the transactions (that's a sum from the detail subreport's
amounts). Then, it ages it, etc. All works great--except when there are
no current transactions to list. The client will have a previous balance,
no transactions, and the aging. Unfortunately, of course the label prints
(not a problem) but the total is "#Error" and that prints also. Looks
kinda tacky.

Is there a way to allow it to print if this total is a valid number but
not print the "#Error" when it's not?

Info if needed: Access2000. Main report = rptAging. Subreport =
srptDetails. Controls on footer are lblTotalCurTrans and TotalCurTrans
(control source is TransTotal from srptDetails).
Feb 6 '07 #2
Ron
That worked like a charm. Now that that problem is solved, I'm off to
tackle something else I don't understand.

Thanks Allen!
ron

"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:45***********************@per-qv1-newsreader-01.iinet.net.au...
Test the HasData property of the subreport.

Details in:
Bring the total from a subreport onto a main report
at:
http://allenbrowne.com/casu-18.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Ron" <ro********************@verizon.netwrote in message
news:A21yh.9772$MH2.4770@trnddc03...
>>
I've got an aging report where the detail is a subreport on the
transactions for a client. I've got a client name header/footer and the
detail is between those areas. One of the controls in the footer is a
label for "Total of current transactions = " and then the control for
totaling the transactions (that's a sum from the detail subreport's
amounts). Then, it ages it, etc. All works great--except when there are
no current transactions to list. The client will have a previous
balance, no transactions, and the aging. Unfortunately, of course the
label prints (not a problem) but the total is "#Error" and that prints
also. Looks kinda tacky.

Is there a way to allow it to print if this total is a valid number but
not print the "#Error" when it's not?

Info if needed: Access2000. Main report = rptAging. Subreport =
srptDetails. Controls on footer are lblTotalCurTrans and TotalCurTrans
(control source is TransTotal from srptDetails).

Feb 8 '07 #3

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

Similar topics

0
by: xixi | last post by:
we are using db2 udb v8.1 on win 64 bit with fp3 with type 4 db2jcc.jar driver. such error generated , please help me understand this , thanks 2004-01-12-14.09.02.400000 Instance:DB2 ...
3
by: ChrisWinterscheid | last post by:
We are running DB2 8.1 on AIX 5.2. DB2level shows: DB21085I Instance "db2inst1" uses "32" bits and DB2 code release "SQL08016" with level identifier "02070106". Informational tokens are "DB2...
5
by: MGFoster | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've converted an ACC97 .mdb file to an ACC2K2 .adp. A report that worked in ACC97 doesn't work in ACC2K2. Report setup: ACC97 ...
15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
32
by: robert d via AccessMonster.com | last post by:
I'm looking at converting DAO to ADO in my app. All of my DAO connections are of the following structure: Dim wsName As DAO.Workspace Dim dbName As DAO.Database Dim rsName As DAO.Recordset ...
3
by: coopst1 | last post by:
below is my almost completed code. I need help trying to figure out how to display to a textarea all the data I have in phpMyAdmin (database). I have two methods near the bottom called itemResults()...
0
by: smtwtfs007 | last post by:
Any body has any idea about his error please? I got this error at the time of creating crystal report. I tried everything to resolve this error. But I could not. Please help. Exception has...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
agi2029
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,...

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.