Question
Display total of contents of 'fields a' for records that have identical 'fields b' in common
Please forgive me for my inability to put this in simple
terms. I tried to search the forums for a solution but when you
can't formulate your question in a pithy manner it's nigh
impossible!
I am attaching code for a query that grabs all the records in a few tables that relate to workshops that have been attended but not yet paid for. What I want to do with them next is to add the "WorkshopCost" field for each of the records that has an identical "SchoolName" and display the result, so that we have a subtotal for each school.
I suspect this should probably be very easy but for some reason I can't figure out how it should be accomplished - if there is another posting where this is answered I would be very happy is someone would point it out! or otherwise give me a shove in the right direction.
I'm thinking I need to do something with the array created by my query...?
I am attaching code for a query that grabs all the records in a few tables that relate to workshops that have been attended but not yet paid for. What I want to do with them next is to add the "WorkshopCost" field for each of the records that has an identical "SchoolName" and display the result, so that we have a subtotal for each school.
I suspect this should probably be very easy but for some reason I can't figure out how it should be accomplished - if there is another posting where this is answered I would be very happy is someone would point it out! or otherwise give me a shove in the right direction.
I'm thinking I need to do something with the array created by my query...?
