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: [Resolved] Help with IF THEN statement
Author
Message
dimah77
Newbie
Joined: 27 Jul 2009
Online Status: Offline
Posts: 3
Topic: [Resolved] Help with IF THEN statement
Posted: 27 Jul 2009 at 2:22pm
Hi, here is my newbees problem ;
I have datafield 'date_naiss' with date type , and boolean field 'presume' from same table ,
I wish to display birthday (date_naiss field) as it is if the field 'presume' is False , and display a text "presumé+(only year of birth)" if the variable is TRUE ... please, i make lot of serach about IF THEN statement, but i can't apply it on my report ..
thanx
Edited by dimah77 - 27 Jul 2009 at 5:05pm
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 27 Jul 2009 at 3:38pm
if {table.date_naiss}=False then totext({table.datefield},"mm/dd/yyyy" else
if {table.date_naiss}=True then "presume " + totext({table.datefield},"yyyy") else "NO CONDITIONS MET"
IP Logged
dimah77
Newbie
Joined: 27 Jul 2009
Online Status: Offline
Posts: 3
Posted: 27 Jul 2009 at 4:45pm
Thanx Dblank ;
When I try to Put the Expression and test it, it tell me that "The result of the formula must be a boolean value"
Edited by dimah77 - 27 Jul 2009 at 4:45pm
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 27 Jul 2009 at 4:56pm
Do not place it in the Select Statement.
Right Click on the formula Field and select NEW.
Add a name like "DOB Text"
add the formula from above.
Drop it on the Detail section to validate it.
Edited by DBlank - 27 Jul 2009 at 4:57pm
IP Logged
dimah77
Newbie
Joined: 27 Jul 2009
Online Status: Offline
Posts: 3
Posted: 27 Jul 2009 at 5:04pm
Thanx a Lot , finally it work
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
BAEZL
© 2004-2026 Brian Bischof. All Rights Reserved.