Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Pass a value into a report Post Reply Post New Topic
Author Message
chris64
Newbie
Newbie


Joined: 19 Mar 2014
Online Status: Offline
Posts: 13
Quote chris64 Replybullet Topic: Pass a value into a report
    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
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet 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.
IP IP Logged
chris64
Newbie
Newbie


Joined: 19 Mar 2014
Online Status: Offline
Posts: 13
Quote chris64 Replybullet 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
IP IP Logged
Gurbs
Senior Member
Senior Member
Avatar

Joined: 16 Feb 2012
Location: Ireland
Online Status: Offline
Posts: 216
Quote Gurbs Replybullet 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?)
IP IP Logged
chris64
Newbie
Newbie


Joined: 19 Mar 2014
Online Status: Offline
Posts: 13
Quote chris64 Replybullet Posted: 24 Jun 2014 at 4:52am
Thanks. this has worked a treat.
 
Regards,
 
Chris64
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.