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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal 10 Formula help needed 1

Status
Not open for further replies.

HookEmHorns

Programmer
Dec 17, 2009
27
0
0
US
I am still new to Crystal and need help laying out the Syntax correct. Can someone help me with what I have below?

Code:
IF {cusASIISC_ImmunizationsGet.Category} = "Haemophilus influenzae Type b" and {cusASIISC_ImmunizationsGet.Sequence} = 0
THEN {cusASIISC_ImmunizationsGet.ImmunDte} 
IF {cusASIISC_ImmunizationsGet.ImmunCode} = "90698" and {cusASIISC_ImmunizationsGet.Sequence} = 0
THEN {cusASIISC_ImmunizationsGet.ImmunDte}
 
One way to write it would be:

if {cusASIISC_ImmunizationsGet.Sequence} = 0 and
(
{cusASIISC_ImmunizationsGet.Category} = "Haemophilus influenzae Type b" or
{cusASIISC_ImmunizationsGet.ImmunCode} = "90698"
) then
{cusASIISC_ImmunizationsGet.ImmunDte}

-LB
 
LBass,

THANK YOU, THANK YOU, THANK YOU!! Would you happen to know of a good book or resource to learn these formula's? Your amazing at this and I deeply appreciate the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top