473,386 Members | 2,050 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,386 software developers and data experts.

Trying to get a 0 value from an empty report

Hi Everybody,

I've been building a main invoice report which has a seperate itemised and then summed expenses report inserted on the page.

I am then using the summed expenses for a calculation in the main Invoice report.

Everything works fine unless there are no expenses, at which point the expenses report disappears and so does the summed expenses total (which would be 0).

As a result the calculation can't be done on the main Invoice report, and I get an error.

I've tried using an IIF statement with Is Null and 0 and "" in the Sum Expenses textbox, and also in the Itemised Expenses textbox and in the main Invoice report, but no luck.

Can sombody point me in the next direction please.

Thank you in advance

Eddie
Dec 1 '08 #1
3 1227
ChipR
1,287 Expert 1GB
I remember I got a similar error until I added a "0+" to my expression in a field before.
Dec 1 '08 #2
Hi ChipR,

I tried your suggestion out but so far... no luck

Cheers Ed
Dec 1 '08 #3
hjozinovic
167 100+
hi ebasshead,

You should use Hasdata property for this.
For a control that sums the expences subreport set a recordsource like this:
Expand|Select|Wrap|Line Numbers
  1. =iif(SubReportName.Report.HasData = False ; 0 ; SubReportName.Report.TotalFieldName)
Dec 2 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: bobh | last post by:
Hi All, I have a report which has several sub-reports on it, Each sub-report has its own record source and child/parent link. Sometimes a sub-report may not have data for an entered policy nbr and...
7
by: Yodai | last post by:
Hi all... I am trying to construct an 2x14 array that compares a given character with the 1st column of data type "t" and returns the second column's appropriate value "v". I've been trying this,...
22
by: RSH | last post by:
Hi, I have been reading on interfaces working on samples I've run across on the web. For the life of me I cannot seem to grasp them. It appears to me that interfaces are simply blueprints to...
7
by: turtle | last post by:
I want to find out the max value of a field on a report if the field is not hidden. I have formatting on the report and if the field doesn't meet a certain criteria then it is hidden. I want to...
1
by: chipshot | last post by:
Hi. First time asking. I have an Access report grouped by and sub-grouped by . For some records, though, the field is empty. The report works properly. However, my problem is that the...
1
by: brsawvel | last post by:
Hello, I have a form with text/combo boxes that draws from a query and sends records to a report. The query has the following code in the criteria block of some of the columns: ...
0
by: rakeshc | last post by:
Hi, I am a new guy in jasper and iReport. I could create a report and subreport successfully with iReport. while running through iReport, it will ask for parameters and after supplying them,...
4
kcdoell
by: kcdoell | last post by:
Hello: What is the best way to stop a report from running if the query is empty? Currently, I have a form that has a command button on it. The user has to make selections from 3 combo boxes on...
9
by: sparks | last post by:
Right now I had to build a report that allowed the people to check for gross outliers in their data input. short I am looking at 2.5* std dev + - anyway I used 2 dummy variables in the query the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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...
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,...

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.