Hi,
I have a query which gives me the following information (simplified here):
PropID --- AccountName --- 1Q2010 --- 2Q2010 ---> 4Q2020
1000 --- RevenueAcct A --- #### --- #### --- ####
1000 --- RevenueAcct B --- #### --- #### --- ####
...
1000 --- ExpenseAcct A --- #### --- #### --- ####
1000 --- ExpenseAcct B --- #### --- #### --- ####
...
4929 --- RevenueAcct A --- #### --- #### --- ####
etc.
I want to either create a new query or append this query which will subtract each of the expenses and add each the revenues to get operating income. I have been playing trial and error here but only succeeded in adding another column containing errors, instead of my ideal result which would look like:
PropID --- AccountName --- 1Q2010 --- 2Q2010 ---> 4Q2020
1000 --- OperatingIncome --- #### --- #### --- ####
4929 --- OperatingIncome --- #### --- #### --- ####
1239 --- OperatingIncome --- #### --- #### --- ####
etc.
I need to keep the results to quarterly data separated by PropID. Is there an easy way to do this, or is it difficult in Access to do math between rows without using a function on the entire column like SUM()?
Thanks!