Don't know why this doesn't work, but if the second part is working you could change the formula to:
{comment04v2.dateofshow} in ({?Begin Date} to {?End Date}) AND
(
if {?All Flags_prm} = false then
(if {?gift_flag_prm} = true then
{comment04v2.giftshop_flag} = 1) OR
(if {?merch_flag_prm} = true then
{comment04v2.merch_flag} = 1) OR
(if {?Box Office Flags_prm} = true then
{comment04v2.box_flag} = 1) OR
(if {?Concessions Flags_prm} = true then
{comment04v2.conc_flag} = 1) OR
(if {?Music Singing Flags_prm} = true then
{comment04v2.musicquality} = 1) OR
(if {?Photo Flags_prm} = true then
{comment04v2.photo_flag} = 1) OR
(if {?Price Value Flags_prm} = true then
{comment04v2.price_flag} = 1) OR
(if {?Production Flags_prm} = true then
{comment04v2.production_flag} = 1) OR
(if {?Unique Flags_prm} = true then
{comment04v2.unique_flag} = 1) OR
(if {?Usher Flags_prm} = true then
{comment04v2.usher_flag} = 1) else true
)
This would return all records if {?All Flags_prm} is true. Then you could go to the section expert->details->suppress->x+2 and enter:
{comment04v2.box_flag} <> 1 and
{comment04v2.conc_flag} <> 1 and
{comment04v2.giftshop_flag} <> 1 and
{comment04v2.merch_flag} <> 1 and
{comment04v2.photo_flag} <> 1 and
{comment04v2.price_flag} <> 1 and
{comment04v2.production_flag} <> 1 and
{comment04v2.unique_flag}<> 1 and
{comment04v2.usher_flag} <> 1
This wouldn't be as efficient, but might work. Another approach might be:
{comment04v2.dateofshow} in ({?Begin Date} to {?End Date}) AND
(
if {?All Flags_prm} = true then
(1 in [{comment04v2.box_flag},comment04v2.conc_flag},{comment04v2.giftshop_flag},{comment04v2.merch_flag},{comment04v2.photo_flag},{comment04v2.price_flag},{comment04v2.production_flag},{comment04v2.unique_flag},{comment04v2.usher_flag}]) else
if {?All Flags_prm} = false then
((if {?gift_flag_prm} = true then
{comment04v2.giftshop_flag} = 1) OR
(if {?merch_flag_prm} = true then
{comment04v2.merch_flag} = 1) OR
(if {?Box Office Flags_prm} = true then
{comment04v2.box_flag} = 1) OR
(if {?Concessions Flags_prm} = true then
{comment04v2.conc_flag} = 1) OR
(if {?Music Singing Flags_prm} = true then
{comment04v2.musicquality} = 1) OR
(if {?Photo Flags_prm} = true then
{comment04v2.photo_flag} = 1) OR
(if {?Price Value Flags_prm} = true then
{comment04v2.price_flag} = 1) OR
(if {?Production Flags_prm} = true then
{comment04v2.production_flag} = 1) OR
(if {?Unique Flags_prm} = true then
{comment04v2.unique_flag} = 1) OR
(if {?Usher Flags_prm} = true then
{comment04v2.usher_flag} = 1))
)
Not sure this would make a difference though. Out of curiosity, is the other field value for each flag a "0" or is it null?
-LB