I'm trying to find out if there is a record in the nested subform from the subform. MS VB Error: Object variable or with block variable not set.

My code:
Private Sub cmdNext_Click()
On Error GoTo Err_cmdNext_Click
dim rec_cnt As Integer
Dim rst As New ADODB.Recordset
Dim rstclone As New ADODB.Recordset

'''Error occurred on the next line
rec_cnt = Me!RMR_desc_defects_subform.Form.Recordset.RecordC ount

If rec_cnt > 0 Then
Set rst = Me.Recordset
Set rstclone = Me.RecordsetClone

end if

I also tried
rec_cnt = Me!RMR_desc_defects_subform.Form.RecordsetClone.Re cordCount
If rec_cnt > 0 Then
end if
then I get this
Error mess: You entered an expression that has an invalid reference to the recordsetclone property.

I appreciate your help .