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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use SQL Query from Crystal Report ?

Status
Not open for further replies.

krist

Programmer
May 30, 2001
114
ID
Hi All,
After one year of using Crystal, I still think this is impossible from Crystal Report.

Page Header :
Total Year To date Customer's Order
Details :
List of Customer's Orders in Current Month.

Obviously in Page Header, I need to do this Query :
'SELECT SUM(...) FROM ... WHERE OrderDate ... '

How can I do this ?

Thanks in advance,
Krist
 
Yes you can do this in Crystal.

You need to bring all records for the year into the report then suppress the detail section if it is not in the current month.

OR, create a sub-report that calculates the Total Year To date Customer's Order.



Reebo
Scotland (Sunny with a Smile)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top