W
Will Jahns
I have used the basic code found on the forum to check a subform for
records or not.
This piece of test code shows me that I am getting the wrong answer.
Private Sub cbxLastName_Exit(Cancel As Integer)
Dim RecCount As Long
RecCount =
Forms(DeletebrokerSubForm).Form.RecordsetClone.RecordCount
MsgBox RecCount
If Forms(DeletebrokerSubForm).Form.RecordsetClone.RecordCount <> 0
Then
MsgBox "Subform has at least one record "
Else
MsgBox "Subform has no records "
End If
end sub
I sure would like to find out what's up with this.
Thanks in advance,
Will
records or not.
This piece of test code shows me that I am getting the wrong answer.
Private Sub cbxLastName_Exit(Cancel As Integer)
Dim RecCount As Long
RecCount =
Forms(DeletebrokerSubForm).Form.RecordsetClone.RecordCount
MsgBox RecCount
If Forms(DeletebrokerSubForm).Form.RecordsetClone.RecordCount <> 0
Then
MsgBox "Subform has at least one record "
Else
MsgBox "Subform has no records "
End If
end sub
I sure would like to find out what's up with this.
Thanks in advance,
Will