Could someone help me write a query or code that allows me to compare records based on the quarter?
For example, in my table all the records have the PK set as (DCN & Quarter). The DCN is usually the same from one quarter to another. However, 3 fields could change (cost basis, useful life, and start date).
I want to be able to allow a user to enter the 2 quarters they want to compare and then there will be a report showing the changes in DCN's from the 2 selected quarters.
Right now I have multiple tables with the different quarters and I am running somewhat of an unmatched query. This technique is very un-user friendly cus I would need to create a new query with the tables for every combination of quarters I want to compare.
Let me know if I am unclear in explaining this.
For example, in my table all the records have the PK set as (DCN & Quarter). The DCN is usually the same from one quarter to another. However, 3 fields could change (cost basis, useful life, and start date).
I want to be able to allow a user to enter the 2 quarters they want to compare and then there will be a report showing the changes in DCN's from the 2 selected quarters.
Right now I have multiple tables with the different quarters and I am running somewhat of an unmatched query. This technique is very un-user friendly cus I would need to create a new query with the tables for every combination of quarters I want to compare.
Let me know if I am unclear in explaining this.
Comment