I need to add the total of several fields. Here are the database fieldsthat I have:
ARCRFT_CNTRL_STS.ARCRFT_STS_CD
This field has the following info:
FMC NMCMU NMCSU PMCS, etc...
ARCRFT_CNTRL_STS.ARCRAFT_TYP
This field has the following info:
C130E C009A C021A, etc...
ARCRFT_CNTRL_STS.ORIG_ID
This field has the following info:
86AW 145AW, etc...
What I need is a total count of all the 86AW C130E's that are FMC, PMCM, atc.
I have tried several formulas, and nothing works correctly.
Under the Select expert, I have
{ARCRFT_CNTRL_STS.ORG_ID} = "86AW"
My formula for the FMC aircraft is as follows:
if {ARCRFT_STS_CD.ARCRFT_STS_CD} = "fmc"
then count ({ARCRFT_CNTRL_STS.ARCRFT_STS_CD})
However, it adds all the aircraft together for a total of 49. With this formula, I get a count of 0:
if {ARCRFT_STS_CD.ARCRFT_STS_CD} = "fmc" and
{ARCRFT_CNTRL_STS.ARCRFT_TYP} = "c130e"
then count ({ARCRFT_CNTRL_STS.ARCRFT_STS_CD})
This is frustrating me to no end!!!
Do I need to change my selection expert, or rewrite my formulas? I do not know a lot about formula writing. I have ordered the Complete Reference for Crystal Reports 8 by George Peck from Amazon, and I am hoping that this will help me out. is this book any good? In the mean time, anyone care to take a stab at it?
I truly appreciate it!!
ARCRFT_CNTRL_STS.ARCRFT_STS_CD
This field has the following info:
FMC NMCMU NMCSU PMCS, etc...
ARCRFT_CNTRL_STS.ARCRAFT_TYP
This field has the following info:
C130E C009A C021A, etc...
ARCRFT_CNTRL_STS.ORIG_ID
This field has the following info:
86AW 145AW, etc...
What I need is a total count of all the 86AW C130E's that are FMC, PMCM, atc.
I have tried several formulas, and nothing works correctly.
Under the Select expert, I have
{ARCRFT_CNTRL_STS.ORG_ID} = "86AW"
My formula for the FMC aircraft is as follows:
if {ARCRFT_STS_CD.ARCRFT_STS_CD} = "fmc"
then count ({ARCRFT_CNTRL_STS.ARCRFT_STS_CD})
However, it adds all the aircraft together for a total of 49. With this formula, I get a count of 0:
if {ARCRFT_STS_CD.ARCRFT_STS_CD} = "fmc" and
{ARCRFT_CNTRL_STS.ARCRFT_TYP} = "c130e"
then count ({ARCRFT_CNTRL_STS.ARCRFT_STS_CD})
This is frustrating me to no end!!!
Do I need to change my selection expert, or rewrite my formulas? I do not know a lot about formula writing. I have ordered the Complete Reference for Crystal Reports 8 by George Peck from Amazon, and I am hoping that this will help me out. is this book any good? In the mean time, anyone care to take a stab at it?
I truly appreciate it!!