Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Minumum Amount is showing 0 as null value and not the actual minimum

Status
Not open for further replies.

lumier

Programmer
May 21, 2004
4
CA
I have a field on my crystal 8.5 report that I need get the minimum and maximum amount. I am able to get the maximum amount but not the minimum. If there are records that have a null value, the mininum is showing 0 when it should should the minimum dollar amount in that column. Any suggestions on how to accomplished this would be appreciated
 
Hi,
If the field is NULL, how can it show something else?
If you can determine the correct minimum ( from some other field, perhaps)then use a formula like:

If IsNull({field}) then {fieldthathasminimum}
else {field}



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Use a running total, which includes minimum/maximum. Add a formula test, to exclude nulls.

Right-click on a field and choose Insert to get a choice of Running Total, Summary etc.

If that fails, write a formula and put it in the detail line:
Code:
if isnull({your.field}) then 999
else {your.field}
Get a minimum for that field, and then suppress it on the detail line so it doens't spoil the look fo the report.


[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
If you have the option, you could exclude null values from your report by using a record selection formula of:

not isnull({table.value})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top