Here, one less multiply by 12:

?(YEAR(m.d2)-YEAR(m.d1))*12 + MONTH(m.d2)-MONTH(m.d1)+1

Fred


On Wed, Jul 25, 2012 at 2:41 PM, MB Software Solutions, LLC <
[email protected]> wrote:

> On 7/25/2012 5:31 PM, Paul Hill wrote:
> > On 25 July 2012 22:26, Sytze de Boer <[email protected]> wrote:
> >> I never reply to this kind of email because I leave it to you gurus
> >> However, I was just working with a live system where I use this formula
> >>
> >> today=date()
> >> m1=(year(trans.date)*12)+month(trans.date)
> >> m2=(year(today)*12)+month(today)
> >> lvMonths=m2-m1
> >
> > That's the idea same as my version :-)
> >
>
> Yep...you both win the prize!  Nice and neat.  Thanks!
>
> --
> Mike Babcock, MCP
> MB Software Solutions, LLC
> President, Chief Software Architect
> http://mbsoftwaresolutions.com
> http://fabmate.com
> http://twitter.com/mbabcock16
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cajcbksokjvc2u2ro5xvzevpuwafzg0gc3yjxc8zrummplqr...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to