Subscribe by Email

Your email:

Search blog

Get in Touch

Phone: 604-420-1099
Email: info@plus.ca

Subscribe to our E-Newsletter

.

Follow Us

Insights & Information regarding enterprise resource planning software from a leading industry expert.

Current Articles | RSS Feed RSS Feed

Crystal Reports - What "Ranges" Did You Run?

  
  
  
  
  
  

Custom Crystal Reports are often written to allow the ability to select a "range" of values, such as "Starting Customer Number" and "Ending Customer Number".   Some of these parameters allow multiple or discrete values and it can be difficult to see the range or all the values that were selected.   

The following formula built into the report will expose these values.  Create the formula and then put it into your Page or Report Header:

WhileReadingRecords;
NumberVar NumRanges := ubound( {?Additional Customers} );
NumberVar i := 0;
StringVar outStr := "";
for i := 1 to  NumRanges
step 1
do
   (
      StringVar maxCN := Maximum( {?Additional Customers} [i] );
      StringVar minCN := Minimum( {?Additional Customers} [i] );
      outStr := outStr & iif ( outStr <> "" , "; " , "" ) &     iif( len (minCN) > 0, minCN, 'The Beginning ') &
    ' to ' &
    iif( len (maxCN) > 0, maxCN, ' The End' );
    );
outStr;

For assistance with this, please contact our office directly!

Comments

Currently, there are no comments. Be the first to post one!
Post Comment
Name
 *
Email
 *
Website (optional)
Comment
 *

Allowed tags: <a> link, <b> bold, <i> italics

This Web site is owned by Plus Computer Solutions Ltd. Plus Computer Solutions Ltd. is independent from Sage and is not authorized to make any statement, representation or warranties or grant any license or permission on behalf of Sage regarding any product, service or Web site content. Certain materials made available on or through this Web site are owned by Sage and cannot be used without the prior written permission of Sage.