Wrox Programmer Forums
|
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 July 1st, 2003, 03:37 PM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default If...then...else

I'm trying to build a formula to check for (-1 or True) in an SQL Table field [Ftester]. As of now it looks like the following.

if {Productivity_MA_RUfinal.Ftester} = -1
then "FIXED"
else "VARIABLE"

The error I'm getting is says that A STRING IS REQUIRED HERE.

Any hints on how to resolve this?

CEJ
__________________
CEJ
 
Old July 9th, 2003, 09:29 AM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try:

if {Productivity_MA_RUfinal.Ftester} = "-1"
then "FIXED"
else "VARIABLE"

It should work...









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