I need to make an Access form which looks up in a Table different percentages, based on 2 dates.
The table has 2 fields: Date From and Percentage.
Date From Percentage
01/01/2007 8%
01/01/2008 9%
01/01/2010 7,5%
Etc...
When a date is selected, it needs to calculate the amount of days in the date range per year.
If e.g. you select from 01/01/2012 through 31/01/2013 it needs to split up per (calendar) year, like this:
Period from 01/01/2012 through 01/01/2013 ( = 366 days) at 6.25 %
Period from 01/01/2013 through 31/01/2013 ( = 30 days) at 4.75 %
For 2012, an entire year, the result should be 6.25 and for 2013 it needs to be 4.75/(number of days per year)*(amount of days in that year)
How do I start? I'm quite new to Access 2010. Any help is much appreciated!!