Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Aging based on a 30 day Accounting month and 360 day Yr.

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am creating a database using approach that tracks the aging of items as they are entered into the account using the Today() function. I know how to calculate the exact number of days an item has been in the account. However, I need to keep the items on an accounting monthly schedule where each month is assummed to be exactly 30 days. For example two seperate entries entered on August 5 and August 29 would both currently show an aging of thirty days. Other problems also occur from months like February with 28 days and the months with 31. Is there anyway to calculate the number of months that have passed since an item was entered into the database instead of days? I believe that there is a feature in Lotus 1-2-3 that uses an accounting month. Does Approach have a similar feature? Any help is appreciated.


[sig][/sig]
 
You can take the Month() of Today() and compare to the Month() of the item, and just subtract the item month from today's month to get the difference if they are in the same year. Or you can set it up to take the year into account too like this calculated field:

NumMonths = If(Year(itemdate) = Year(Today()),Month(Today()) - Month(itemdate), (Year(Today()) - Year(itemdate) * 12) - (Month(itemdate) - Month(Today()))

Sue Sloan [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top