Hi,
I am working on a database that it used to calculate power consumption. Each item is assigned to a specific substation where it gets it power. So for example if you have 10 1 watt light bulbs attached to the substation, the total power drawn would be 10 watts.
This total power per substation is calculated by a query that sums all of the different values for each item and presents the combined total next to the substation name.
What makes this more difficult is the fact that some substations get their power from other substations, making the total power from the main substation effectively the sum of the components attached to both.
For example: substation A has 10 watts worth of light bulbs and substation B has 15 watts worth of light bulbs. Substation A is "feeding" power to substation B, so the total power drawn from substation A is 25W and the total power drawn from substation B is 15W.
The table that holds the substation data has a field that identifies which substation is gets its power from, assuming it is not independant.
Currently my query can sum all of the components entered under substation A but what I need, but cannot do, is for the total of substation B to be included with the total of substation A. (In the case that A is "feeding" B.)
How can I go about this. It might be simple but I can't think of anything.
Thanks