Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: converting string to date Post Reply Post New Topic
<< Prev Page  of 3
Author Message
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 9:24am
Sorry..This is not working.still displays all the locations..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 9:27am
I moved the first parenth after i first posted my reply, did you see that change?
Also if you just use this as the select without anything else (dates) does it work?
 
(not (HasValue({?Storeroom})) OR {Command.STOREROOM} = {?Storeroom})


Edited by DBlank - 14 Sep 2010 at 9:27am
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 9:35am
I have seen the change you made..i tried in all the ways..it works without dates and it works correctly if i enter the enddate..which the user doesn't want to enter..still i have the same problem..and thanks for replying me with soo much patience..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 10:03am

can you repost the full select statement with all parts.



Edited by DBlank - 15 Sep 2010 at 3:54am
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 10:12am
I have used this code
 
not (HasValue({?Storeroom})) OR {Command.STOREROOM} = {?Storeroom}) and
(hasvalue({?EndDate}) and date({Command.TRANSDT}) in {?startdate} to {?EndDate})or
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {?startdate} to currentdate)
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 10:24am
(not (HasValue({?Storeroom})) OR {Command.STOREROOM} = {?Storeroom})
and
(
(hasvalue({?EndDate}) and date({Command.TRANSDT}) in {?startdate} to {?EndDate})
or
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {?startdate} to currentdate)
)
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 15 Sep 2010 at 3:52am
Hi..Thanks You soo much..it works..
IP IP Logged
<< Prev Page  of 3
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.