I am very new to Crystal reports
and I creted a rpt based on an MS SQL table and the date field "TDATE" 25/08/2011 appears as a number on the report
e.g. 20,110,825.00
I have created a formula that converts it into a date
I got this formula from this site and it returns the number as a date on the report
WhilePrintingRecords;
NumberVar input := {PMTIMED.TDATE};
// This line checks for a minimum value, any value will work.
If input < 19590101 then Date (1959, 01, 01) else
Date ( Val (ToText (input, 0 , "") [1 to 4]),
Val (ToText (input, 0 , "") [5 to 6]),
Val (ToText (input, 0 , "") [7 to 8]) )
But now i want to create a prompt for the TDATE field but the TDATE field is that number as above, How do I create a parameter or promt where the user inputs the date 25/08/2011 and it then relates it to the number
Hope that makes sense
Thanks in advance
Can I build the parameter based on the formula
and I creted a rpt based on an MS SQL table and the date field "TDATE" 25/08/2011 appears as a number on the report
e.g. 20,110,825.00
I have created a formula that converts it into a date
I got this formula from this site and it returns the number as a date on the report
WhilePrintingRecords;
NumberVar input := {PMTIMED.TDATE};
// This line checks for a minimum value, any value will work.
If input < 19590101 then Date (1959, 01, 01) else
Date ( Val (ToText (input, 0 , "") [1 to 4]),
Val (ToText (input, 0 , "") [5 to 6]),
Val (ToText (input, 0 , "") [7 to 8]) )
But now i want to create a prompt for the TDATE field but the TDATE field is that number as above, How do I create a parameter or promt where the user inputs the date 25/08/2011 and it then relates it to the number
Hope that makes sense
Thanks in advance
Can I build the parameter based on the formula