This is really driving me insane. I am running the code below in the Crystal Select Expert. The second part of my two 'OR' statements will not work. I am not getting any errors, it just brings up a blank report when the second part of the or statement should be valid. This same syntax has worked in previous Crystal reports. Any Ideas?:-}
Deirdre
Deirdre
Code:
{COURSE.CDP} = {?InCDP} and
(if {?inGroup} = "GRP" then
(({LOCATION_GRP.SQDN} = {?inSelection}) or ({LOCATION_GRP.GRP} = {?inSelection}))
else
if {?inGroup} = "MAJOR" then
({LOCATION_GRP.MAJOR} = {?inSelection})
ELSE
if {?inGroup} = "TY" then
({LOCATION_GRP.TYCOM} = {?inSelection})
ELSE
if {?inGroup} = "WING" then
({LOCATION_GRP.WING} = {?inSelection})
ELSE
if {?inGroup} = "ADDGRP" then
(({LOCATION_GRP.PARENT_GRP} = {?inSelection}) or ({LOCATION_GRP.PARENT_SUBGRP} = {?inSelection}))
ELSE
if {?inGroup} = "UIC" then
({MEMBER.UIC} = {?inSelection}))