t3cho,
First, please use code tags when posting code.
Second, the format of your code will produce an error, as there is no "End" included int he statement, and the Else must be on a separate line. This could all simply be formatting as posted.
Third, I am not sure what you question is.
If you are asking what the line
does, then this line is checking to see the current record count of the recordset. If this recordset has just been opened, it should be on the first record (if the recordset is not empty), and so the record count will be one. If code has previously worked with the recordset, and, for example, has moved to the last record, then the value will be the total number of records.
Because If...Then statements evaluate Boolean conditions, if there are no records in the recordset, then RsData.RecordCount will return 0, which is equivalent to "False", and the following statements in the If...Then sonctruct will not fire.
If there are
any records, then RsData.RecordCount will be a numerical value, and any numerical value (other than 0) will evaluate to "True", and the following statements will fire.
Other than that, I am not sure what you are asking.