I'm trying to create the report in SAP Crystal Reports (BusinessObject CR 2013 SP5) which display a number of the records from the database. My record selection is based on the item number which goes from 0 to 9999999. If I want to select specific numeric range (i.e. between 2500000 to 2600000) I used following record selection formula:
{v_R_rvc_menuitem_fam_grp.menuitem_number} in ToNumber({@Start_ItemRng1}) to ToNumber({@End_ItemRng1});
where the @Start_ItemRng1 is set to 2500000 and @End_ItemRng1 is 2600000.
My problem is that I need to add second numeric range into the formula (records btween 2700000 to 2800000). This way the report would returns records between 2500000-2600000 and 2700000 to 2800000. Unfortunately my all attempts returns with error code. Any suggestions how to correctly write the record selection formula?