dianemarie
Instructor
Hello, I have a report that prints out orders from an ordertable and shows any associated deals for those orders, which are in two different views by players on the order (for this example let's say buyer and seller are the two players, each with their own view although I actually have several views). The report groups by order number, with order detail on the group, then the detail section is broken into two sections, with the deal description on section a for seller and section b for buyer . They want to be able to run the report with an option to show orders with deals only, orders without deals only, and all orders (whether there is a deal or not). I have a parameter and the following in my selection criteria, kind of wordy but it seems to do the trick for showing only deals, or showing only no deals, but how do I get it to show all deals? Thanks for any help.
(if {?Deal or No Deal?} = "Print no deals only" then
isnull ({v_seller.DealID}) = true and
isnull ({v_buyer.DealID}) = true)
else if {?Deal or No Deal?} = "Print deals only" then
isnull ({v_seller.DealID}) = false or
isnull ({v_buyer.DealID}) = false)
(if {?Deal or No Deal?} = "Print no deals only" then
isnull ({v_seller.DealID}) = true and
isnull ({v_buyer.DealID}) = true)
else if {?Deal or No Deal?} = "Print deals only" then
isnull ({v_seller.DealID}) = false or
isnull ({v_buyer.DealID}) = false)