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!

need help troubleshooting a formula 1

Status
Not open for further replies.

ktatpe

MIS
May 15, 2003
12
0
0
US
I have found a glitch in my report... i know what is causing the problem and i have an idea as to how to fix it but i'm not too familiar w/ IF, THEN, ELSE statements.

i have two fields in a table named:
{itemCount.Refund}
{itemCount.Quantity}

The possible values for {itemCount.Refund} are "True" or "False"

what i want to happen is for {itemCount.Quantity} to display its value if {itemCount.Refund} = "False"; but if {itemCount.Refund} = "True" i want {itemCount.Quantity}= 0

the formula i'm using is:
IF {itemCount.Refund} = "False"
THEN {itemCount.Quantity}
ELSE {itemCount.Quantity} = 0

I get an error message stating "a boolean is required here."

I would greatly appreciate some help.

thank you in advance.
 
Hi
I think all you need to do is the following

IF {itemCount.Refund} = "False"
THEN {itemCount.Quantity}
ELSE 0

 
Thanx for the quick response!!!

I received the same error message stating ""a boolean is required here."

after i click "ok" on the error message, the cursor flashes right before, "False" in the formula. i'm assuming that's where the error lies.

formula:
IF {itemCount.Refund} = "False"
THEN {itemCount.Quantity}
ELSE 0


Once again thank you for your response
 
Try getting rid of the "" around the word false
 
Thank you so much for your help, that was the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top