Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2006, 02:12 PM
Registered User
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scroll dataset using crystal formula

Hello,

I am using CR11.

I have six fields in my sql database from which I will only show three that are required. These are {SellPrice}, {SortCode} and {ProductCode}.

The {ProductCode} contains "A" codes like A11010001 to A11010020
and "C" codes like C1000021001 to C1000021035 (different string lengths).

The {SellPrice} has different pricing for "A" codes and also for "C" codes.

The {SortCode} contains only "A" codes for certain prices in the {SellPrice} field.

My question is: how do I write a formula that will first find an "A" code in the {SortCode} field. If "A" code is not found then give {SellPrice} for {ProductCode}. If "A" code is found in {SortCode} then match it with the "A" code in the {ProductCode} and give a different price in the {SellPrice} field.

Please help. Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in formula in Crystal Report Prakash001 Crystal Reports 10 December 5th, 2007 04:12 AM
crystal report formula suresh.cgmohan VB How-To 0 November 2nd, 2006 06:10 AM
Crystal Reports Use formula sayeed Crystal Reports 2 February 7th, 2005 01:01 PM
needing help for formula editor in crystal report anilkumar Crystal Reports 1 January 7th, 2004 04:13 PM
Pass String webpage to Crystal Report (formula) winnie1778 Crystal Reports 0 October 18th, 2003 01:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.