philfer
12-03-2009, 09:13 AM
Hello,
Just curious if I am on the right track.
I have a database which has 3 tables which holds normalised extracts from an accounting system.
I have some static data tables with relationships to the above that hold general ledger codes and the names, employee numbers and names and department numbers and names.
I use queries to summarise the extracted data by general ledger code and employee.
The users want to be able to set up some "rules" in the database i.e. move 50% of revenue from 1 department to the other, move 100% of the profit from one department to the other.
This transfer would then be shown on the report output under an "adjustments" section.
I am trying to provide this functionality.
I am thinking about setting up a table with the following fields :-
1) DeptFrom
2) DeptTo
3) Amount (i.e. %)
4) Value
5) DateSetUp
6) UserName
7) DateRemoved
The fourth field (Value) would be populated by VBA. I thought about getting VBA to run through each row of the table and calculate the value that is to be moved and hold it in this field (VBA may have to run a parameter query for this)
Then I will have to try and find a way to show these adjustments on the reports. Some departments may have 1 adjustment/rule others may have 10 others may have none.
My question is twofold :-
1) Am I on the right track
2) How can I take this to completion
I understand that this is a complicated question but any help/advice/ideas would be greatly appreciated
Thanks
Phil
Just curious if I am on the right track.
I have a database which has 3 tables which holds normalised extracts from an accounting system.
I have some static data tables with relationships to the above that hold general ledger codes and the names, employee numbers and names and department numbers and names.
I use queries to summarise the extracted data by general ledger code and employee.
The users want to be able to set up some "rules" in the database i.e. move 50% of revenue from 1 department to the other, move 100% of the profit from one department to the other.
This transfer would then be shown on the report output under an "adjustments" section.
I am trying to provide this functionality.
I am thinking about setting up a table with the following fields :-
1) DeptFrom
2) DeptTo
3) Amount (i.e. %)
4) Value
5) DateSetUp
6) UserName
7) DateRemoved
The fourth field (Value) would be populated by VBA. I thought about getting VBA to run through each row of the table and calculate the value that is to be moved and hold it in this field (VBA may have to run a parameter query for this)
Then I will have to try and find a way to show these adjustments on the reports. Some departments may have 1 adjustment/rule others may have 10 others may have none.
My question is twofold :-
1) Am I on the right track
2) How can I take this to completion
I understand that this is a complicated question but any help/advice/ideas would be greatly appreciated
Thanks
Phil