Solved

> and < formula not working right

Posted on 2014-01-13
2
226 Views
Last Modified: 2014-01-13
I have a report that I am trying to say if one field is greater than 95 but less than 105 it should change the field value to Y or N depending on whether it falls within this range.  Looks like it will say Y at the 100% mark, but one value is at 106 and still says Y.  

If ({@Accuracy} >95 or {@Accuracy} < 105) then "Y" else "N"

Can you see any issue?
0
Comment
Question by:delta1734
2 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
ID: 39778144
You need to use AND instead of OR.
OR will be awlays true because the value will be either over 95or less than 105. 106 is over 95 nad that is why is true.

You need to use AND:
If ({@Accuracy} >95 AND {@Accuracy} < 105) then "Y" else "N"
0
 

Author Closing Comment

by:delta1734
ID: 39778233
Duh!  It's always the little things.  Thanks!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now