CCSVermont
Vendor
I'm new to Crystal formulas, and I've got this formula that I've created from reading posts here, that's not working.
For every misc1 that's either "3" or "6", I'm getting BOTH values, not JUST the one I want (ie; if loccode is "01", I want a certain department name returned, if loccode is "02", I want ONLY the other one returned). My report is showing subgroups for BOTH on one report, doubling the data.
Can anyone tell me what is wrong?
---------
Select {invonhand.misc1}[1]
case "0", "1":
'Department 1'
case "2":
'Department 2 - Bella Flora'
case "3":
(Select {invloc.loccode}[1 to 2]
case "01": 'Department 3a'
case "02": 'Department 3b'
default : 'Unknown Department')
case "4":
'Department 4'
case "5":
'Department 5'
case "6":
(Select {invloc.loccode}[1 to 2]
case "01": 'Department 5a'
case "02": 'Department 5b'
default : 'Unknown Department')
case "7":
'Department 1'
---------
For every misc1 that's either "3" or "6", I'm getting BOTH values, not JUST the one I want (ie; if loccode is "01", I want a certain department name returned, if loccode is "02", I want ONLY the other one returned). My report is showing subgroups for BOTH on one report, doubling the data.
Can anyone tell me what is wrong?
---------
Select {invonhand.misc1}[1]
case "0", "1":
'Department 1'
case "2":
'Department 2 - Bella Flora'
case "3":
(Select {invloc.loccode}[1 to 2]
case "01": 'Department 3a'
case "02": 'Department 3b'
default : 'Unknown Department')
case "4":
'Department 4'
case "5":
'Department 5'
case "6":
(Select {invloc.loccode}[1 to 2]
case "01": 'Department 5a'
case "02": 'Department 5b'
default : 'Unknown Department')
case "7":
'Department 1'
---------