on 04-12-2017 9:41 PM
Hello All,
I am creating a parameter based on order_date to prompt as start and end date. Crystal reports is based on stored procedure and order date has timestamp. But user only wants to select date without timestamp.
I am assuming I have to make change to SP where order_date has to be converted to date?
or any other way to do in crystal reports ?
Thanks
pali
Hi Pali,
There is another way to do this in CR via Subreports.
It depends on the significance of the timestamp though. Does the field store actual transaction times or just 00:00:00?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pali,
If order_date is a parameter in the Stored Procedure, then yes, you need to make sure the parameter in the report matches the datatype of the parameter in the Stored Procedure.
If order_date is not a parameter and you are adding the filter in the Record Selection Formula, then you can convert the Crystal parameters to DateTime in the formula.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
The order date is a parameter...i used it in record filter ...for start and end date based on order_date. The data type in DB and stored proc is Datetime. Should I convert the datetime in stored procedure to display only date ? wont it still be a datetime object in crystal ?
Thanks,
pali
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.