J
jeanulrich00
Hi
I have a table containing over 300 records
Table contain 4 fields.
Unique ID for each field
Amount (Field with number)
Beginning (dated field)
End (date field)
I would like to distribute Amounts in time
Example let say that for the first record I have 1000$ , the
beginning is the first of January 2007 and the end is the 15 of march
2007
1/1/07 to 15/3/07 equal 74 days (counting the last day)
Distribution should be like that
For January it is : 31 days / 74 days * 1000 = 418.91
For February it is : 28 days / 74 days * 1000 = 378.38
For march it is : 15 days / 74 days * 1000 = 202.70
Is it possible to do that with a query or do I need some codes
Thanks
I have a table containing over 300 records
Table contain 4 fields.
Unique ID for each field
Amount (Field with number)
Beginning (dated field)
End (date field)
I would like to distribute Amounts in time
Example let say that for the first record I have 1000$ , the
beginning is the first of January 2007 and the end is the 15 of march
2007
1/1/07 to 15/3/07 equal 74 days (counting the last day)
Distribution should be like that
For January it is : 31 days / 74 days * 1000 = 418.91
For February it is : 28 days / 74 days * 1000 = 378.38
For march it is : 15 days / 74 days * 1000 = 202.70
Is it possible to do that with a query or do I need some codes
Thanks