Can anyone tell me what this does;
In the field (QBE grid)
Format(DateAdd("yyyy",3,[CASEDT]),"mmyyyy") and in the criteria field there is;
Format(DateAdd("m",2,Date()),"mmyyyy")
The field [CASEDT] Is a date field, and as far I can see, this criteria will pull results that have dates which fall two months after the date the query (or report) is run. ie run it anytime in October and I'll get results for all dates in December. I don't understand what the contents of the field are doing?
What I'm trying to do is modify this query to give me results which cover two months previous to current month. We have applications which expire - as I'm typing the penny has dropped on what the field format above does.
Right, Applications expire 3 years after [CASEDT], and this query gives me 2 months warning of applications which are about to expire. I need to have a report which lists application which have just expired. Say, everything which has expired in the last 2 months. So, report run in October, it will tell me what has expired in August AND September. Can anyone offer suggestions on how to do this?
Thanks
FrankyG
In the field (QBE grid)
Format(DateAdd("yyyy",3,[CASEDT]),"mmyyyy") and in the criteria field there is;
Format(DateAdd("m",2,Date()),"mmyyyy")
The field [CASEDT] Is a date field, and as far I can see, this criteria will pull results that have dates which fall two months after the date the query (or report) is run. ie run it anytime in October and I'll get results for all dates in December. I don't understand what the contents of the field are doing?
What I'm trying to do is modify this query to give me results which cover two months previous to current month. We have applications which expire - as I'm typing the penny has dropped on what the field format above does.
Right, Applications expire 3 years after [CASEDT], and this query gives me 2 months warning of applications which are about to expire. I need to have a report which lists application which have just expired. Say, everything which has expired in the last 2 months. So, report run in October, it will tell me what has expired in August AND September. Can anyone offer suggestions on how to do this?
Thanks
FrankyG