Access 2007 (DAO preferred)
I have a table of records on the many side of an account where interest rates change over a given time. I want to be able to have a user input a START DATE and END DATE and have the system calculate interest. An account can have many rows of data with changing dates and rates.
Example:
INPUT DATE: 3/1/2006
INPUT DATE: 2/1/2008
(in this situation I know some of the days would be calculated from change date (on) 1-1-2008 to 2-1-2008 at 8%, 1-1-2007 to 1-1-2008 (-1) at 7%, 3-1-2006 through 1-1-2007 (-1) at 6%
All loans have an original date started and a last change date. The Input date will never be more than 31 days after last change date. The Input start needs to not starting calculating interest till after the original date.
I need to loop through the records or possibly create an array (which I am a bit foggier on). Essentially I need to calculate the amount of days from the INPUT as they pertain to the orig date, change date, rate after change, and prev rate (which has been conviently supplied). I would then add up all the various interest from the created table. Some loans change monthly or yearly and could be any number of records associated.
Orig Loan change rate date rate prev rate
1/1/2004 101 1/1/2005 5% 4%
1/1/2004 101 1/1/2006 6% 5%
1/1/2004 101 1/1/2007 7% 6%
1/1/2004 101 1/1/2008 8% 7%
Any help on creating a looping system that can take into account the various scenerios that happen (no interest at all for loans with orig date later than inputted end date)
I have a table of records on the many side of an account where interest rates change over a given time. I want to be able to have a user input a START DATE and END DATE and have the system calculate interest. An account can have many rows of data with changing dates and rates.
Example:
INPUT DATE: 3/1/2006
INPUT DATE: 2/1/2008
(in this situation I know some of the days would be calculated from change date (on) 1-1-2008 to 2-1-2008 at 8%, 1-1-2007 to 1-1-2008 (-1) at 7%, 3-1-2006 through 1-1-2007 (-1) at 6%
All loans have an original date started and a last change date. The Input date will never be more than 31 days after last change date. The Input start needs to not starting calculating interest till after the original date.
I need to loop through the records or possibly create an array (which I am a bit foggier on). Essentially I need to calculate the amount of days from the INPUT as they pertain to the orig date, change date, rate after change, and prev rate (which has been conviently supplied). I would then add up all the various interest from the created table. Some loans change monthly or yearly and could be any number of records associated.
Orig Loan change rate date rate prev rate
1/1/2004 101 1/1/2005 5% 4%
1/1/2004 101 1/1/2006 6% 5%
1/1/2004 101 1/1/2007 7% 6%
1/1/2004 101 1/1/2008 8% 7%
Any help on creating a looping system that can take into account the various scenerios that happen (no interest at all for loans with orig date later than inputted end date)