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: Problem using OR statements to get correct data to
Oldest Post First
Newest Post First
Author
Message
BadBoyHouse
Newbie
Joined: 25 May 2010
Online Status: Offline
Posts: 20
Topic: Problem using OR statements to get correct data to
Posted: 07 Feb 2013 at 5:39am
Hi guys wondering if anyone can help me on this.
I've created a report which has four columns: Client Name, Newsletter Choice 1, Newsletter Choice 2 and Newsletter Choice 3.
The Newsletter Choice fields are True/False fields from an SQL database.
For any given client on the database they may have a True in one, two, or three of the Newsletter Choice fields.
I need the report to pick out clients where one or more of the Newsletter Choice fields is True.
In the Selection Formula's section I've tried the following which didn't work:
(
{tblDataTable.Newsletter_Choice_1} = True
or
{tblDataTable.Newsletter_Choice_2} = True
or
{tblDataTable.Newsletter_Choice_3} = True
)
Appreciate any pointers anyone could give me.
Cheers
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 07 Feb 2013 at 5:53am
Your select statement looks fine.
do you have nulls instead of False?
if so that would kill your statement on those rows if it hits a null before a true.
inside the select statement editor use hte drop down on how to handle nulls and set it for 'use default values for nulls'
IP Logged
BadBoyHouse
Newbie
Joined: 25 May 2010
Online Status: Offline
Posts: 20
Posted: 08 Feb 2013 at 12:59am
Thanks DBlank - that fixed it.
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.