Hello -
I am trying to summarize two tables with different setups in a report.
I am entering payments by periods.
Field names are as follows:
PaymentNumber = Payment 1, Payment 2, Payment 3..
Period = P1, P2, P3...
FiscalYear = 2010, 2011, 2012..
PaymentAmount = dollar amount for the period
For expenses I am entering by year.
ContractYear = Year 1, Year 2, Year 3...
ContractYearAmo unt = dollar amount for the year
StartPeriod = P1, P2, P3...
StartYear = 2010, 2011, 2012..
EndPeriod = P1, P2, P3...
EndYear = 2010, 2011, 2012..
Trying to sum the data in the following format:
Columns data = Thirteen periods (visible even w/o data)
Rows data grouped per year =
Expense 2010 [Summed]
Payment 2010 [Summed]
Difference [Expense-Paymnet]
-----------------------------
Expense 2011 [Summed]
Payment 2011 [Summed]
Difference [Expense-Paymnet]
I tried several ways, including a Union Query, then creating a Crosstab Query on this Union Query. One of the challenge arises because of the different ways in which data is entered for each table. Maybe I need to breakout the expense into a temporary period table(not sure how but just a thought)to match the payments table or is there a better easier way to accomplish this.
Thanks in advance for your help.
CJ
I am trying to summarize two tables with different setups in a report.
I am entering payments by periods.
Field names are as follows:
PaymentNumber = Payment 1, Payment 2, Payment 3..
Period = P1, P2, P3...
FiscalYear = 2010, 2011, 2012..
PaymentAmount = dollar amount for the period
For expenses I am entering by year.
ContractYear = Year 1, Year 2, Year 3...
ContractYearAmo unt = dollar amount for the year
StartPeriod = P1, P2, P3...
StartYear = 2010, 2011, 2012..
EndPeriod = P1, P2, P3...
EndYear = 2010, 2011, 2012..
Trying to sum the data in the following format:
Columns data = Thirteen periods (visible even w/o data)
Rows data grouped per year =
Expense 2010 [Summed]
Payment 2010 [Summed]
Difference [Expense-Paymnet]
-----------------------------
Expense 2011 [Summed]
Payment 2011 [Summed]
Difference [Expense-Paymnet]
I tried several ways, including a Union Query, then creating a Crosstab Query on this Union Query. One of the challenge arises because of the different ways in which data is entered for each table. Maybe I need to breakout the expense into a temporary period table(not sure how but just a thought)to match the payments table or is there a better easier way to accomplish this.
Thanks in advance for your help.
CJ
Comment