Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / December 2005

Tip: Looking for answers? Try searching our database.

Calculating accruals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
grep - 09 Dec 2005 07:58 GMT
Given the fields:
    StartDate    - the effective start date
    PerMonth     - the number of hours which accrue in a month
    HoursAccrued     - the number of hours accrued since StartDate

I want to be able to calculate the value of HoursAccrued, based on
StartDate and PerMonth. How do I do this? I don't want to use a +30,
+60, +90 days sort of thing, because that's not a true month.

Any suggestions?

grep
Klatuu - 09 Dec 2005 14:11 GMT
Not enough info in you post to know how and when you will increment a month,
but if you want to find the first day of any month you can use the DateSerial
function.  This example assumes you want to find the first day of the current
month:
dmtStartDate = DateSerial(Year(Date), Month(Date), 1)

> Given the fields:
>     StartDate    - the effective start date
[quoted text clipped - 8 lines]
>
> grep
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.