Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Parameter if not entered Post Reply Post New Topic
<< Prev Page  of 4
Author Message
Minco
Groupie
Groupie
Avatar

Joined: 28 Nov 2012
Location: United States
Online Status: Offline
Posts: 62
Quote Minco Replybullet Posted: 13 Sep 2013 at 8:20am
OK, I'll try to debug... thank you so much for your input DB - you're always a big help.
Be kind to those less fortunate.
IP IP Logged
Minco
Groupie
Groupie
Avatar

Joined: 28 Nov 2012
Location: United States
Online Status: Offline
Posts: 62
Quote Minco Replybullet Posted: 18 Sep 2013 at 3:26am
{SERREQUEST.CREDAT_0} = {?Date Range} and
(
//runs for all records if both are blank
(not(hasvalue({?Group Customer}) and not(hasvalue({?Customer BPC}))))
or
//run for only Group
(hasvalue({?Group Customer}) and {?Group Customer}={BPCUSTOMER.BPCGRU_0} and not(hasvalue({?Customer BPC})))
or
//run for only Customer
(hasvalue({?Customer BPC}) and {?Customer BPC}={SERREQUEST.SRENUM_0} and not(hasvalue({?Group Customer})))
)
So I decided to ask IT to give me views for the miscellaneous tables I had to clarify in my previous select statement, so I don't need that part anymore. I've used this select statement and it returns ALL customer records regardless of whether I enter a customer number or a group number specifically. As another note: I have this report grouped by sales SITE so that the records are grouped by the site in which the product was sold. Is this grouping what is causing the problem?
Be kind to those less fortunate.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Sep 2013 at 3:26am
You keep trying to add to "Not" conditions in the first evaluation
if you parenth the 2 portions correctly the NOT applies to both parts
I think yours is doing a double negative
try it with only one NOT
 
 
{SERREQUEST.CREDAT_0} = {?Date Range} and
(
//runs for all records if both are blank
(not(hasvalue({?Group Customer}) and hasvalue({?Customer BPC})))
or
//run for only Group
(hasvalue({?Group Customer}) and {?Group Customer}={BPCUSTOMER.BPCGRU_0} and not(hasvalue({?Customer BPC})))
or
//run for only Customer
(hasvalue({?Customer BPC}) and {?Customer BPC}={SERREQUEST.SRENUM_0} and not(hasvalue({?Group Customer})))
)
IP IP Logged
Minco
Groupie
Groupie
Avatar

Joined: 28 Nov 2012
Location: United States
Online Status: Offline
Posts: 62
Quote Minco Replybullet Posted: 19 Sep 2013 at 3:31am
When I take out the "Not" condition is the second part of the first evaluation, I don't get any data at all. The IT guy here, believes that the grouping by the site isn't handled well by CR and I've had to make 3 reports: 1 for returning all customers, 1 for returning just information for 1 customer and the last one for returning information for 1 group of customers.

Edited by Minco - 19 Sep 2013 at 3:33am
Be kind to those less fortunate.
IP IP Logged
<< Prev Page  of 4
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.031 seconds.