He visto varias formas pero no se cual es la diferencia entre estas:
If (.EOF Or .BOF) Then msgbox "No hay registros" 'Logicamente aqui es True por default osea If (.EOF Or .BOF) = True Then..
If (.BOF And .EOF) Then msgbox "No hay registros"
If .RecordCount = 0 Then msgbox "No hay registros"
If .RecordCount = Empty Then msgbox "No hay registros"
Que alguien me explique?