I'm building a database to keep track of expenditures for a grant I manage. Every expenditure has a budget code. Some of these expenditures have another cost associated with them, either an indirect cost or a fringe benefit cost, which is a percentage of the expenditure. This cost has it's own budget code. After calculating this cost for each expenditure in a query, how do I relate it to it's own budget code?
I have separate tables for the expenditures and the budget codes and a query that calculates the indirect cost for each expenditure.
For example:
I have a supply purchase for $3,500 in budget code 25.
My query calculates that the indirect cost for this is $175.00.
How do I get that $175 to associate with budget code 60?
Any help would be appreciated.