A
Annette
I have an asset table that lists the date acquired and life span in
years along with date disposed,etc. I calculate the depreciation
schedule when each item is viewed on the screen. I have a table that
holds this information. So when I am viewing another asset, the
information from this table is deleted and new data is written to the
table. The data that is written is the asset id, month end date and
depreciation amount. This then gets listed in a subform and presented
as monthly depreciation and a year summary deprecation in a different
subform.
So an asset purchased on 03/01/2007 that has a life span of 4 years
will have 48 depreciation records written to the table, one for
03/31/2007, 04/30/2007, 05/31/2007, etc until the asset completes its
life span or is disposed of. This is accomplished by using a for/next
loop and adding records to a table.
In addition I will need to do this same thing when looking at "all
assets" when determining a departments assets and current depreciation/
book values.
I now that having tables like these "bloats" the database. Is there a
different way I can do this with a select query or any other
suggestions?
years along with date disposed,etc. I calculate the depreciation
schedule when each item is viewed on the screen. I have a table that
holds this information. So when I am viewing another asset, the
information from this table is deleted and new data is written to the
table. The data that is written is the asset id, month end date and
depreciation amount. This then gets listed in a subform and presented
as monthly depreciation and a year summary deprecation in a different
subform.
So an asset purchased on 03/01/2007 that has a life span of 4 years
will have 48 depreciation records written to the table, one for
03/31/2007, 04/30/2007, 05/31/2007, etc until the asset completes its
life span or is disposed of. This is accomplished by using a for/next
loop and adding records to a table.
In addition I will need to do this same thing when looking at "all
assets" when determining a departments assets and current depreciation/
book values.
I now that having tables like these "bloats" the database. Is there a
different way I can do this with a select query or any other
suggestions?