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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress group based on Max formula 1

Status
Not open for further replies.

RenaG

Programmer
May 3, 2011
132
US
Hi,

I have created two formulas:
@DecreasedAppetiteFlg
If FldA = 123 then
'N'
Else If FldA = 543 then
'Y';
@MaxAppetiteFlg
Maximum ({@DecreasedAppetiteFlg}, Dt_Tm})
(NOTE: rpt is grouped on Dt_Tm)

I am trying to suppress the group footer when @MaxAppetiteFlg is blank or null. But this code isn't working:
{@MaxAppetiteFlg} = "" or {@MaxAppetiteFlg} = " "

Any other suggestions? TIA!
 
I hadn't but just did and it didn't work either.

Thanks for the suggestion!
 
..@DecreasedAppetiteFlg

if isnull(FldA) then
"" else
If FldA = 123 then
'N' Else
If FldA = 543 then
'Y'

Then suppress using:

{@MaxAppetiteFlg} = ""

-LB
 
Perfect!!! That is exactly what I needed.

You are so clever.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top