Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: how to pass a crystal report formula as a paramete Post Reply Post New Topic
Author Message
mikechrist
Newbie
Newbie
Avatar

Joined: 07 May 2007
Location: United States
Online Status: Offline
Posts: 2
Quote mikechrist Replybullet Topic: how to pass a crystal report formula as a paramete
    Posted: 07 May 2007 at 5:40pm
All,
 
How to pass a crystal report formula as a parameter to SQL QUERY created using ADDCOMMAND
 
my query:
 
SELECT <TABLE.COLUMN1> FROM <TABLE> WHERE <TABLE.COLUMN2>='CR FORMULA'
 
thanks
mike
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 07 May 2007 at 7:04pm
On the right-hand side of the SQL Query dialog box is an 'Add Parameter' section. Just add a new parameter and then double-click on it to insert it into the SQL query. Very easy once you see how it works!
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
mikechrist
Newbie
Newbie
Avatar

Joined: 07 May 2007
Location: United States
Online Status: Offline
Posts: 2
Quote mikechrist Replybullet Posted: 08 May 2007 at 7:02am
Brian,
 
Thanks for your reply..
 
The question is not creating a parameter using dialogbox.
 
i want to pass crystal report formula already created in report
 
that formula i have to pass as a parameter to SQL  QUERY in addcommand
 
like
 
SELECT EMP_NAME FROM EMP WHERE DEPT_NO={@DEPTNO}
 
{@DEPTNO} is a formula already created for a column
 
i created a formula for each columns
 
so that i can fetch a column values..
 
 
 
thanks
mike
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.