wilekoyote76
MIS
Using this equation I'm getting only partial results. I want each of the conditions to be checked. If statements only check one and move on. How can I rework this selection query so it checks for ALL the conditions and displays ALL the records within the search dates?
if {CONTACT2.UCLMNO} > 0 then
({CONTACT2.UIIDATPAID} >= {?begindate} and {CONTACT2.UIIDATPAID} <= {?enddate}) OR
{CONTACT2.UPYMTDATE} >= {?begindate} and {CONTACT2.UPYMTDATE} <= {?enddate} OR
{CONTACT2.URIDATPAID} >= {?begindate} and {CONTACT2.URIDATPAID} <= {?enddate} OR
{CONTACT2.URODATPAID} >= {?begindate} and {CONTACT2.URODATPAID} <= {?enddate};
if {CONTACT2.UCLMNO} > 0 then
({CONTACT2.UIIDATPAID} >= {?begindate} and {CONTACT2.UIIDATPAID} <= {?enddate}) OR
{CONTACT2.UPYMTDATE} >= {?begindate} and {CONTACT2.UPYMTDATE} <= {?enddate} OR
{CONTACT2.URIDATPAID} >= {?begindate} and {CONTACT2.URIDATPAID} <= {?enddate} OR
{CONTACT2.URODATPAID} >= {?begindate} and {CONTACT2.URODATPAID} <= {?enddate};