Hi all
I am using Crystal reports 8.5 and SQL Server
i am littlebit confused in writing formula giving you the scenario :
in one table i have datefield
need to check that date falls under the given date range
(ex: given date range :09/12/2005 - 02/11/2006
field consists : 13/12/2005
like above i need the count of the fields which falls under that date range
please help meuse formula something like this
if '2-jan-2006' > '1-jan-2006' or '2-jan-2006' < '31-jan-2006' then
1
else
0
then use summary function sum.
hope it helps|||Thanks its helps for me
Another problem is there with date range
when i selects a startdatetime from daterange,it should go back to one year and fixes to date and month (i.e May 31)
startdatetime -- 03/04/2006
date should goes to -- 05/31/2005
i used dateadd('yyyy',-1, startdatetime) it is decreasing one year but i am unable to fix the date to May 31
thank you very much|||if date is fixed to 31-may then u can use this formula
left(cstr('31-may-'& val(right(cstr(cdate('8-jan-2006')),4))-1),11)|||Thank you very much
you showed me away to do this
thanks a lot|||Hi
when i used your formula
getting the value like 2,005
Actually my aim to take this as daterange instead of actual date range
so if it contains "," unable to take it as daterange
pls help me|||I don't see anyproblem in that formula except its returning a string.
can you write how, u r using that formula|||Hi,
I am using what u r send formula.
But i get comma oerator in the year.
i am using like this
'31/1/'+ cstr(val(right(cstr(cdate('8/1//2006')),4))-1)
i am getting
31/1/2,005|||Hi,
I am using what u r send formula.
But i get comma oerator in the year.
i am using like this
'31/1/'+ cstr(val(right(cstr(cdate('8/1//2006')),4))-1)
i am getting
31/1/2,005
i removed one slash from between 1//2006
put as a formula
'31/1/'+ cstr(val(right(cstr(cdate('8/1/2006')),4))-1)
and got my output as
31/1/2005.00|||Hi
Thanks for your reply
In the given date range i am getting some customer ids from database
what i want is need to check whether those customer ids are existing or not in the perticular date range(i.e different date range from given date range)
if i am getting customer ids for this date range (07/01/2005 - 07/31/2005)
need to check the customer ids are existing in tthis date range(06/01/2005 - 06/30/2005)
could you pls help me|||iam developing the crystal report there was small problem iam facing
please help me
How to use parameter of main report into the subreport
example
@.startdatetime is a parameter in main report
ia want to use the same parmeter in subreport
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment