Print Page | Close Window

Pass a value into a report

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=20829
Printed Date: 03 May 2024 at 7:41pm


Topic: Pass a value into a report
Posted By: chris64
Subject: Pass a value into a report
Date Posted: 24 Jun 2014 at 2:32am
I want to pass a value into a crystal report at run time so that I can do calculations with it. The value is not in the data records that are used in the report. The value will vary each time I run the report, so I cannot hard code it into the report.
 
Regards,
 
Chris64



Replies:
Posted By: Gurbs
Date Posted: 24 Jun 2014 at 3:03am
can you do it with a parameter? You can use this in your calculations, and enter it every time you run the report.


Posted By: chris64
Date Posted: 24 Jun 2014 at 3:24am
Thanks for replying.
 
Does the parameter value need to be a value that is already in the report data?
 
Can I pass the parameter into a variable?
 
Regards,
 
Chris64


Posted By: Gurbs
Date Posted: 24 Jun 2014 at 3:27am
No, a parameter can have any value that you want. If you go to Value Options, you can set Allow custom values to True.

You can use this in a formula (I assume that is what you mean? So you can use it in calculations?)


Posted By: chris64
Date Posted: 24 Jun 2014 at 4:52am
Thanks. this has worked a treat.
 
Regards,
 
Chris64



Print Page | Close Window