Perhaps if you convert it in a formula, as in (not sure if you have a date or datetime string in the SP, nor if the subreport has a date or datetime field, your post was a bit sparse), one of these might work:
Now join this formula to your date or datetime field in your subreport, if it's a datetime field, you'll have to adjust the record selection formula..
In future posts, please post examples of the data and what version and type of database/Crystal so that you might get an answer tailored to your environment.
We are using a SQL database and stored procedures as the data source, with Crystal 8.5.
This was my first attempt at a subreport link, and I found that by linking the stored procedure datefield (not datetime field) (which is text) to the subreport date parameter, that the links work.
Now, however, I am recognizing that the user will input the account number and date in the browser application, and then the subreport will prompt them for the same info again.
Let me take another look at your suggestions and see if I can make that work.
If I understand your comments, if I create a formula in the "shell" report linked to the stored procedure to change the stored procedure date to a date, then I should be able to link that date (CDate) to the date in the subreport table.
You are linking your parameters to {?Pm-?ParameterName}, which is why you are getting prompted more than once.
If you use the very small scroll bar in the bottom left window of Change Subreport links, you should scroll so that you link to the actual parameter name, rather than the {?Pm-?...} counterpart.
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.