Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: String Required
Oldest Post First
Newest Post First
Author
Message
sandston
Newbie
Joined: 29 Aug 2012
Online Status: Offline
Posts: 1
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
comatt1
Senior Member
Joined: 19 May 2011
Online Status: Offline
Posts: 337
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2025 Brian Bischof. All Rights Reserved.