Ok Im using Crystal 8.5 and below is my selection
What i want to accomplish is when the they choose customer
class is will make a group to group the records it pulls by customer number If you need me to give you some more info let me know so instead of listing All Items for that customer class it will group the items by customer number
Code:
IF {?Include Special Charges}="NO"or
{?Include Special Charges}="no"then
not ({LOT.ILT_ITEM} in ["1","2","3","4","5","C","C1","C2","C3","C4",
"C5", "C6","F","f 12 DSE","f 13 DMS","f 14 DMW","f10","f2","f3","f4","f5","p"]) and
(
{LOT.ILT_CUST#} in {?Customer From} to {?Customer To} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To}) or
{?Customer Class} ={LOT.RCM_CLASS} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To}) or
{?Customer Name} = {LOT.RCM_NAME} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To})
)
or
IF {?Include Special Charges}="NO"or
{?Include Special Charges}="no"then
not ({LOT.ILT_ITEM} in ["1","2","3","4","5","C","C1","C2","C3","C4",
"C5", "C6","F","f 12 DSE","f 13 DMS","f 14 DMW","f10","f2","f3","f4","f5","p"]) and
(
{LOT.ILT_CUST#} in {?Customer From} to {?Customer To} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To}) or
{?Customer Class} ={LOT.RCM_CLASS} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To}) or
{?Customer Name} = {LOT.RCM_NAME} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To})
)
else
IF {?Include Special Charges}= "YES" then
{LOT.ILT_CUST#} in {?Customer From} to {?Customer To} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To}) or
{?Customer Class} ={LOT.RCM_CLASS} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To}) or
{?Customer Name} = {LOT.RCM_NAME} and
{@Begin Date} in DateTime ({?First Date Range From}) to DateTime ({?First Date Range To})
or
{LOT.ILT_CUST#} in {?Customer From} to {?Customer To} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To}) or
{?Customer Class} ={LOT.RCM_CLASS} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To}) or
{?Customer Name} = {LOT.RCM_NAME} and
{@End Date} in DateTime ({?Second Date Range From}) to DateTime ({?Second Date Range To})
Code:
{?Customer Class} ={LOT.RCM_CLASS}