hi can you help me dubug this error

it says 'operation not allowed when object is closed


here is the code

Code:
Private Sub Command2_Click()
ch = "0"
With rsStock

    .MoveLast
    Text1.Text = !stockcode + 1

End With
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True

Combo2.Enabled =
...