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:

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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

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

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)
Do these parameters appear as  Crystal parameter fields?  If so you can just drag them into the report.
SolarWinds® IP Control Bundle (IPCB)

Combines SolarWinds IP Address Manager and User Device Tracker to help detect IP conflicts, quickly identify affected systems, and help your team take near instantaneous action. Help improve visibility and enhance reliability with SolarWinds IP Control Bundle.

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

KlinkeyeAuthor Commented:
The parameter area is empty.

Field Explorer
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.
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.

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.
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.


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
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
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.