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 > Data Access, Manipulation & Batch Languages > Crystal Reports > to retrieve previous year value--Urgent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-06-09, 02:06
roselinechristina roselinechristina is offline
Registered User
 
Join Date: Jun 2009
Posts: 4
to retrieve previous year value--Urgent

Hi..
I need to prepare a crystal report based on the docdate and the quantity.The datevalue is in one table and the quantity in another table. By using inner join i have connected the date and the quantity.But i need to retrieve the previous year quantity in the date value..
for example.. if the datavalue is 23/5/2009 - 200Kg then i need to calculate
the quantity on 23/5/2008-?....... Please quickly reply..

Thank you in advance...
~
Roseline
Reply With Quote
  #2 (permalink)  
Old 06-06-09, 03:06
Srinvb Srinvb is offline
Registered User
 
Join Date: May 2009
Posts: 5
Thumbs up

You can use the dateADD function in crystal reports
DateAdd("Y",-1,{<your Date Field}
Check out for dateadd syntax.
Reply With Quote
  #3 (permalink)  
Old 06-06-09, 05:22
roselinechristina roselinechristina is offline
Registered User
 
Join Date: Jun 2009
Posts: 4
ya.. I have used it to change the date part alone. what i need here is , i want to retrieve the quantity value on that date. How to compare with this date and get..
please....
~
Roseline Christina
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