If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Crystal Reports - Help needed!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-04, 02:33
achavda achavda is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Crystal Reports - Help needed!!

Hello,

I've got an issue with a crystal report. For the records that I'm trying to recieve, I assume I need to create a custom formula in the Select Expert. I've tried to write this formula in several ways, but it doesn't pull up the correct information. The formula in the Select Expert should shape the SQL query, but this is not happening.

The formula is:

{Table.Parm1} = {?Parm1} and
date(year({?Parm From Date}), month({?Parm From Date}), 01) <= date({Table.Parm2}, {Table.Parm3}, 01) and
date(year({?Parm To Date}), month({?Parm To Date}), 01) >= date({Table.Parm2}, {Table.Parm3}, 01) and
{Table.Parm4} = {?Parm4} and
{Table.Parm5} = {?Parm5}

and the SQL query it creates is:

SELECT
Table."Parm1", Table."Parm2", etc..
FROM
Database Name."Table" Table
WHERE
Table."Parm1" = ? AND
Table."Parm4" = 571 AND
Table."Parm5" = ?
ORDER BY
Table."Parm3" ASC

The SQL query is not picking up the values of Parm1 and Parm5 which are entered while refreshing the report data.

Anyone who knows what's happening?

Thanks for your help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On