Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: String Required Post Reply Post New Topic
Author Message
sandston
Newbie
Newbie


Joined: 29 Aug 2012
Online Status: Offline
Posts: 1
Quote sandston Replybullet Topic: String Required
    Posted: 29 Aug 2012 at 10:53pm
I am quite a newbie to Crystal Reports so bear with me if I do not provide all the relevant information first off.

Below is my formula:

if {?ARR_DEP} = "A" then
{FLIGHTD_ALL.ACTUAL}
else
if {FLIGHTD_ALL.CANCEL_CODE} = "C" then
""
else
{FLIGHTD_ALL.OFFCHOCKS}

when I attempt to validate the formula advises me that a sring is required.

Any advice or guidance would be much appreciated.



Edited by sandston - 29 Aug 2012 at 11:08pm
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Aug 2012 at 3:43am
is {FLIGHTD_ALL.OFFCHOCKS} a string field type?
If not you need to convert it to text
IP IP Logged
comatt1
Senior Member
Senior Member
Avatar

Joined: 19 May 2011
Online Status: Offline
Posts: 337
Quote comatt1 Replybullet Posted: 31 Aug 2012 at 5:48am

If you pass a null it would be a problem, but I bet if you just use totext({Field}) you will be fine.

I would look at database and see if the field is varchar.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.