Hi -
Potential problem here, depending on what you're looking for. The DateDiff() function merely subtracts the month numbers, without regard to days. This has been a perpetual problem in computing ages in years.
Here's an example:
? datediff("m", #1/15/09#, #4/1/09#)
3
...when actually 3 full months won't occur until 4/15/09 (or 4/14/09, depending how you look at it).
If this could be a problem, here's a way around it:
DateStart = #1/15/09#
DateEnd = #4/1/09#
? datediff("m", datestart, dateend) + (day(datestart)>=day(dateend))
2
The + (day(datestart)>=day(dateend)) is a Boolean statement which returns -1 if true, 0 if false.
HTH - Bob