I am going to try and explain this the best way I can and I hope I don't confuse you. I may have gone about this the wrong way, but here is where I am. I am trying to create a Select query using 2 Tables, and a Cross Tab Query. The Cross tab Query's information changes based on the year being pulled. If pulling for 2019 the Cross tab will have 01 2019, 02 2019, 03 2019 and 04 2019. And all 4 of these are being pulled into the Select Query in the bottom section. Now if I run this same query for 2020 the Cross tab shows 01 2020 and that combination is not in the lower section. Is there a way for the query to pull whatever fields show up rather than having to revise it when running for different years. I have included a screen shot of the query for 2019 through third quarter.
So basically I want the query to pull whatever shows up in the cross tab as month year without having to update it manually.
So basically I want the query to pull whatever shows up in the cross tab as month year without having to update it manually.