I am using crystal reports 10 and need a report that will return all clients from each nursing home. I am using the following if then else statement:
IF {TrustClient.LevelOfCare}="078" or {TrustClient.LevelOfCare}="69" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="031" Then
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="029" or {TrustClient.LevelOfCare}="033" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="028" or {TrustClient.LevelOfCare}="034" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="040" or {TrustClient.LevelOfCare}="041" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="046" or {TrustClient.LevelOfCare}="048" THEN
"NursingHomeName"
The statement will work but it also returns all clients that have not been assigned to a nursing home (hospital clients). I tried using an End If but got error message "The remaining text does not appear to be part of the formula". Could someone please help?? I am new to crystal reports and I am lost once again...
IF {TrustClient.LevelOfCare}="078" or {TrustClient.LevelOfCare}="69" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="031" Then
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="029" or {TrustClient.LevelOfCare}="033" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="028" or {TrustClient.LevelOfCare}="034" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="040" or {TrustClient.LevelOfCare}="041" THEN
"NursingHomeName"
Else IF {TrustClient.LevelOfCare}="046" or {TrustClient.LevelOfCare}="048" THEN
"NursingHomeName"
The statement will work but it also returns all clients that have not been assigned to a nursing home (hospital clients). I tried using an End If but got error message "The remaining text does not appear to be part of the formula". Could someone please help?? I am new to crystal reports and I am lost once again...