Hey I am using If InStr(1, rs.recordset1, rsx.recordset2) ..
to find matching records.
If there are more than 15 matches I want to exit the If condition. How can I count the records?
Code Example:
Do Until rs.EOF
If InStr(1, rs.Fields("Column1"), rs1.Fields("Column1")) > 0 Then
db.Execute "Insert into tbl_name (ColumnName) Values ( """ & rs.Fields("Column1") & """ ); ", dbFailOnError
End If
rs1.moveNext
Loop