You want to void a check in QuickBooks that affects the bank account as of the check date, rather than the period during which the check was voided.
In QuickBooks 2012 and later, you will be prompted to allow the program to automatically create a journal entry when voiding a check that affects an Expense account, provided you have not turned off "Bring back all one time messages" in General Preferences.
The message states: "To maintain the accuracy of your financial reports and balance the accounts affected by the check, QuickBooks can create a journal entry in the earlier period and a reversing journal entry in the current period. Would you like QuickBooks to void the check and enter the appropriate journal entries for you?"
Note: This message will not appear when voiding a Bill Payment check. Journal entries for voided Bill Payments need to be manually created per the steps below.
To avoid changing the information presented on prior financial statements, create a journal entry that affects the same accounts as the voided check. Then reverse that journal entry by voiding the check in the current period.
If these steps do not resolve the issue, you can read discussions and post messages and questions relating to your issue on the Intuit QuickBooks Community site for free or you can contact a technical support agent for additional guidance. Fees may apply.