AZdesertdog
IS-IT--Management
CR8.5 with MSSQL2k
I have a report where I'm suppressing a text field if ALL of the associated text fields below it are missing.
I'm using the following supression formula (ugly, I know) which works fine almost all the time. Unfortunately I've found that occasionally there may be a blank instead of the usual NULL fields which keeps my field from suppressing when it should.
---suppression formula------
isnull({%PT STG 1})and isnull({%PT STG 1 NMR})and
isnull({%PT STG 1 S})and isnull({%PT STG 2})and
isnull({%PT STG 2 NMR})and isnull({%PT STG 2 S})and isnull({%PT STG 3})and isnull({%PT STG 3 NMR})and
isnull({%PT STG 3 S})and isnull({%PT STG 4})and
isnull({%PT STG 4 NMR})and isnull({%PT STG 4 S})and
isnull({%PT STG 5})and isnull({%PT STG 5 NMR})and
isnull({%PT STG 5 S})and isnull({%PT STG 6})and
isnull({%PT STG 6 MNR})and isnull({%PT STG 6 S})
The SQL expressions in the suppress formula all result in text values.
I know I can add something like "or {%PT STG 1}=''" for each expression but I have literally dozens of them in dozens of places. My question is, is there a short cut that I can use to convert the above suppression filter to include the blanks as well as the NULLs? Any help appreciated.
-DD
I have a report where I'm suppressing a text field if ALL of the associated text fields below it are missing.
I'm using the following supression formula (ugly, I know) which works fine almost all the time. Unfortunately I've found that occasionally there may be a blank instead of the usual NULL fields which keeps my field from suppressing when it should.
---suppression formula------
isnull({%PT STG 1})and isnull({%PT STG 1 NMR})and
isnull({%PT STG 1 S})and isnull({%PT STG 2})and
isnull({%PT STG 2 NMR})and isnull({%PT STG 2 S})and isnull({%PT STG 3})and isnull({%PT STG 3 NMR})and
isnull({%PT STG 3 S})and isnull({%PT STG 4})and
isnull({%PT STG 4 NMR})and isnull({%PT STG 4 S})and
isnull({%PT STG 5})and isnull({%PT STG 5 NMR})and
isnull({%PT STG 5 S})and isnull({%PT STG 6})and
isnull({%PT STG 6 MNR})and isnull({%PT STG 6 S})
The SQL expressions in the suppress formula all result in text values.
I know I can add something like "or {%PT STG 1}=''" for each expression but I have literally dozens of them in dozens of places. My question is, is there a short cut that I can use to convert the above suppression filter to include the blanks as well as the NULLs? Any help appreciated.
-DD