Jun 6, 2002 #1 Nmartin95 MIS May 29, 2002 19 US What would be a formula so that I can get data for the last 2 months using a date field? Any help would be appreciated thanks
What would be a formula so that I can get data for the last 2 months using a date field? Any help would be appreciated thanks
Jun 6, 2002 1 #2 dgillz Instructor Mar 2, 2001 10,038 US {DateField} in Aged0to30Days or {DateField} in Aged31to60Days should do the trick Software Support for Macola, Crystal Reports and Goldmine dgilsdorf@mchsi.com Upvote 0 Downvote
{DateField} in Aged0to30Days or {DateField} in Aged31to60Days should do the trick Software Support for Macola, Crystal Reports and Goldmine dgilsdorf@mchsi.com
Jun 6, 2002 1 #3 synapsevampire Programmer Mar 23, 2002 20,180 US Or if you want just the data within the last 2 months as opposed to the last 60 days of data: {datefield} >= dateadd("m", -1, date(year(currentdate), month(currentdate),1)) This would return all data from 5/1/2002 based on a June run date. Adjust the -1 to however many months back you need. -k http://www.informeddatadecisions.comkai@informeddatadecisions.com Upvote 0 Downvote
Or if you want just the data within the last 2 months as opposed to the last 60 days of data: {datefield} >= dateadd("m", -1, date(year(currentdate), month(currentdate),1)) This would return all data from 5/1/2002 based on a June run date. Adjust the -1 to however many months back you need. -k http://www.informeddatadecisions.comkai@informeddatadecisions.com