Crystal will not let you put conditions on the summary. You can use one of 3 techniques.
1. A formula to convert the data from the value to a 0 if the row is outiside your desired range and then sum the formula field
if {invoice_hdr.invoice_date} in {?BegInvDate} to {?EndInvDate} then {invoice_line.qty_shipped} else 0
Sum this for formula field to get the total
2. variable formulas to conditionally include or exclude each row when summing. Lots of examples of these in the forum but not my preferred process (although probably the most popular one).
3. Create a Running Total (note running totals and variable formulas do not work in headers, only details and footers)
Select new running Total
name = whatever you want
field to summarize= {invoice_line.qty_shipped}
type =Sum
evaluate = use a formula
{invoice_hdr.invoice_date} in {?BegInvDate} to {?EndInvDate}
reset = never (for a grand total)
Place in report footer
Edited by DBlank - 29 Aug 2011 at 4:12am