If you entered the 2021 data on a 2022 return, you will need to re-enter all those details by creating a brand new 2021 return. You can't transfer the data from one tax year to another. Neither can you change the tax year in a return.
You have clicked a link to a site outside of the Intuit Accountants Community. By clicking "Continue", you will leave the community and be taken to that site instead.