Crystal Reports - use query variable in report

I currently have a very old version of Crystal Reports (8.5). However what I am trying to do is fairly simple. In my query, there is a couple of variables:
@begin_date
@end_date

In the report I simply want to put these at the top in the report header stating: This report contains data from @begin_date until @end_date.

How do I do this in the report designer?
LVL 4
KlinkeyeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Assuming these are part of the stored procedure, you have to return them as part of the recordset.

mlmcc
0
KlinkeyeAuthor Commented:
Well the query is a file IE report.qry
The variables are defined in that file (along with the rest of the query)
0
peter57rCommented:
Do these parameters appear as  Crystal parameter fields?  If so you can just drag them into the report.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

KlinkeyeAuthor Commented:
Where will I find Crystal parameters? Im a total noob when it comes to Crystal.
0
mlmccCommented:
DIsplay the field explorer
Click the PARAMETER in the tree to expand that branch

mlmcc
0
KlinkeyeAuthor Commented:
The parameter area is empty.


Field Explorer
0
KlinkeyeAuthor Commented:
You see this is a bit of a strange setup...
They use crystal delivery to tie the report and the query files together and output the result on a schedule.

So I have a Report.rpt and a Query.qry file. Im not even sure how they built the current report with the qry file being separate.
0
mlmccCommented:
In light of that, the only way to do it is to pass the parameter values back from the query in each record.

CR8.5 has a stand-alone query building tool.  The output is a .QRY file that can be used by the report.  I never used that tool so I don't know how to do what you are asking.

mlmcc
0
KlinkeyeAuthor Commented:
Yeah it definitely using the standalone query building tool. Some values have been passed into the report, as you say... I just cant figure out how to drag other variables from the .qry file into the report.
0
mlmccCommented:
You can't since they aren't returned as part of the dataset to the report.

You have to change the query in the query tool to add fields to the records that are the values you want to see.

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.