Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pull data out from startdate:01/01/2002 to enddate: 12/31/2002. 1

Status
Not open for further replies.

112055

Programmer
May 13, 2002
61
US
I want to be able to pull data out from startdate:01/01/2002 to enddate: 12/31/2002.
Is this correct ?
I put it inside Edit Selection Formula-->inside Record and Check and Accept it.
But everytime I Accept it , it ask me if I want to change the query. I do not want to change my existing query in my Show SQL Query. Is my sequence of steps or approach to it is wrong?


{D.DEAL_STATUS} = "F"
and
(year({D.DEAL_DT})= year(CurrentDate) and day({D.DEAL_DT}) = day(CurrentDate))
 
Try:

{D.DEAL_STATUS} = "F"
and
{D.DEAL_DT}= cdate("1/1/2002") to cdate("12/31/2002")

By doing this, Crystal will alter the SQL sent to the database to optimize.

You're probably getting this message because you've altered the SQL manually, so copy out the SQL and paste it somewhere, then let CR update the SQL, then add back in whatever is different.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top