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!

A boolean is required 2

Status
Not open for further replies.

pineisland99

Instructor
Feb 13, 2007
22
0
0
US
Attempting ti build the below formula but am receiving the above error on saving it:

if {TRACKING_FILE.f453#processor_name} or
{TRACKING_FILE.f321#closer_name} = "Naheed Gulamali" then
if UCase({TRACKING_FILE.fu36#loan_queue}) = "Processing" then
1
else
0


What am I doing wrong?
 
First, what version of crystal. You should never post without this information.

Second, a boolean is a formula that eveluates to true or false. This is required in crystal for conditional formatting formulas, as well as record or group selection formulas.

So how are you creating this formula? Step by step?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
Crystal Version 9.2

How am I creating this formula - I had the formula as below when I was using groups, but now management has changed the request so need some more logic...

NumberVar ProcCount;
if UCase({TRACKING_FILE.fu36#loan_queue}) = "Processing" then
1
else
0
 
You posted the formula itself, not how you created it.

For example, clicking on report->edit selection formula->group is one way to create a formula, and in this case, the WRONG way for your formula, as it is not a boolean formula.

So once again, how did you create your formula? Click by click, key by key, what did you do to create it?

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
Try the following for a formula in the field explorer:

if
(
{TRACKING_FILE.f453#processor_name} = "Naheed Gulamali" or
{TRACKING_FILE.f321#closer_name} = "Naheed Gulamali"
) and
UCase({TRACKING_FILE.fu36#loan_queue}) = "PROCESSING" then
1
else
0

Note that "processing" needs to be in upper case to get a value check.

-LB
 
I was creating the report under the field explorer. I did try the solution by lbass and it appears to work well.

Thank you all for your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top