Search code examples
crystal-reportscrystal-reports-xi

how to pull data that is older than 6 months on Crystal Report XI?


I have a field titled COMPLTDATE that is a DATETIME; however when I write,within select expert, {ORDERSEC.COMPLTDATE} >= currentdate - 6 months I receive an error.

How should I write it so that it pulls all the data from the last six months ?


Solution

  • {ORDERSEC.COMPLTDATE} >= DateAdd ('m',-6 ,currentdate)