Hola
Un saludo
Código [Seleccionar]
Private Sub validar()
Dim path As String
Dim consulta As String
Dim Cn as adodb.connection, Datos as adodb.recordset
path = App.path & "\mantenimiento.mdb"
set cn = new adodb.connection
cn.open conectionstring, usuario, clave
set Datos=new adodb.recordset
Datos.open "select a,b,c from XXX where ... order by ...",
if datos.eof then
' el recordset está vacío
endif
...
Un saludo