|
没办法,内建的函数又很多地方是微软按照惯例来做了,很难面面俱到。你可以用下现的函数组合实现一下。
datediff("m",d1,iif(day(d2)<day(d1),dateadd("m",-1,d2+day(d1)-day(d2)),d2-(day(d2)-day(d1))))
d1=#2007-7-22#
d2=#2007-9-4#
?datediff("m",d1,iif(day(d2)<day(d1),dateadd("m",-1,d2+day(d1)-day(d2)),d2-(day(d2)-day(d1))))
1
d1=#7/4/2007#
d2=#9/14/2007#
?datediff("m",d1,iif(day(d2)<day(d1),dateadd("m",-1,d2+day(d1)-day(d2)),d2-(day(d2)-day(d1))))
2
*****************
* 一切皆有可能 *
*****************
QQ群 48866293 / 12035577 / 7440532 / 13666209
http://forum.csdn.net/SList/Access .
http://www.accessbbs.cn/bbs/index.php .
http://www.accessoft.com/bbs/index.asp .
http://www.access-programmers.co.uk/forums .
http://www.office-cn.net .
http://www.office-cn.net/home/space.php?uid=141646 . |
|