irenavassilia
Programmer
- Jun 19, 2007
- 101
I need to create a formula in crystal reports with the following condition:
select sum(quantity), itemnumber from uxdetail where fiscalyear = '2006' and fiscalperiod between 1 and 4 and itemnumber = '00112X25000023' group by itemnumber
The quantity field is on the Detail line and the fiscalperiod will be between the parameter entry.
This is my formulas but all i get is 0's:
if {UXDETAIL.FiscalYear} = {?Year} and {UXDETAIL.FiscalPeriod} in 1 to {?Month} then
sum({UXDETAIL.Quantity})
Any help would be greatly appreaciated.
select sum(quantity), itemnumber from uxdetail where fiscalyear = '2006' and fiscalperiod between 1 and 4 and itemnumber = '00112X25000023' group by itemnumber
The quantity field is on the Detail line and the fiscalperiod will be between the parameter entry.
This is my formulas but all i get is 0's:
if {UXDETAIL.FiscalYear} = {?Year} and {UXDETAIL.FiscalPeriod} in 1 to {?Month} then
sum({UXDETAIL.Quantity})
Any help would be greatly appreaciated.