Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 8.5 formula syntax help

Status
Not open for further replies.

mdieckman

MIS
Nov 21, 2006
88
US
I'm trying to write a formula for some parameter logic and I just can't see to get the syntax right for the case statement. Can anybody help?

code:

Select case {?network}
Case "ALL"
true;
Case "IN NETWORK"
{@benefit name} like ["*IN NET*"]
Case "OUT OF NETWORK"
{@benefit name} like ["*OUT OF NETWORK*", "*OON*"]
Case Else
true;
End Select

Thanks
 
Nevermind, I figured it out. Semi-colon was throwing me off and added a default.

Select {?network}
Case "ALL":
true
Case "IN NETWORK":
{@benefit name} like ["*IN NET*"]
Case "OUT OF NETWORK":
{@benefit name} like ["*OUT OF NETWORK*", "*OON*"]
default :
true;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top