I have a report with a datetime parameter.
If user input the parameter,then the report will retrieve date as user input ,else if user havn't input date,the report will retrieve the yesterday data by default.how should i do?Thanks!!!
I think the parameter will have to be filled by the user. I don't think they can skip it.
But you can set the parameter's default value to a very old date (like 1/1/1950) and then have the selection formula say:
if {?param} = Date (1950,1,1)
then {Date.Field} = currentdate - 1
else {Date.Field} = {?param}
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Expert's Guide to Formulas / Guide to Crystal in VB
thnaks for your response ,but another problem occur ,if I use the control struct such as "if then else" is selection expert,then the selection will not be push to database server, so database base server will return all the result ,it is terrible ,if so ,the perfromance is very low.How can I solve the problem?Thanks in advance!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.