Sounds like you are trying to mix-up cash-basis with accrual-basis accounting.
Cash/Bank is always recorded when paid (credit) or received (debit), regardless of accounting method used.
For cash-basis accounting, when rent is paid, credit cash and debit rent expense.
For accrual-basis accounting, you record invoice when received as debit expense/credit rent liability and then when cash is paid, debit liability to zero out and credit cash.