Solved

between function

Posted on 2008-10-15
2
903 Views
Last Modified: 2012-05-05
Unable to create a between statement  

if {@Markup %} is >= .41 and <= .4999 then .07

I have tried
"Iif Between({@Markup %} , 0.41  , 0.419999), { 0.07}, 'NULL' else" and receive remaining text does not appear to be a formula
0
Comment
Question by:kgittinger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 22727802
if {@Markup} between .41 and .4999 then .07;

i don't have my copy of crystal reports available to me right now so i can't verify i have it right.
0
 
LVL 5

Accepted Solution

by:
jgbreeden earned 500 total points
ID: 22728088
To use the AND statement, lose the 'is' and repeat the value on the left side of the equal sign:
if {@Markup %} >= .41 and {@Markup %} <= .4999 then .07

I personally like that better than the between statement, it's more obvious whether you are getting >= or just >
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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