Sorry, I don't have an answer.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
Hi,
Forward only cursor/recordset do not know and do not bother themselves
trying to know how many records are in the set. The recordset count
returns -1 (should it been better if it would return NULL? but then, the
property should be have been a variant, another source of problem).
Hoping it may help,
Vanderghast, Access MVP
> Sorry, I don't have an answer.
>
[quoted text clipped - 36 lines]
>>>>>>
>>>>>> does anyone knows about it?
JLuis Estrada - 31 May 2005 14:48 GMT
So, thats an error from ADO?
Well, I changed my code and did this:
Private Function ComprobarConexion() As Boolean
Dim Cn As New ADODB.Connection, Rs As ADODB.Recordset
Dim a As Integer
Const JET_SCHEMA_USERROSTER As String =
"{947bb102-5d43-11d1-bdbf-00c04fb92675}"
Cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
Trim(RutasSoftal.Db) & ";Persist Security Info=False"
a = Cn.State
Set Rs = Cn.OpenSchema(adSchemaProviderSpecific, , JET_SCHEMA_USERROSTER)
While Not Rs.EOF
a = a + 1
Rs.MoveNext
Wend
ComprobarConexion = a > 1
Rs.Close: Set Rs = Nothing
Cn.Close: Set Cn = Nothing
End Function
and It worked so well. Its not the best programming practice, but if works,
its ok.
Tnx for your help
> Hi,
>
[quoted text clipped - 46 lines]
>>>>>>>
>>>>>>> does anyone knows about it?
Douglas J. Steele - 31 May 2005 23:14 GMT
You could probably use:
Set Rs = Cn.OpenSchema(adSchemaProviderSpecific, , JET_SCHEMA_USERROSTER)
Rs.MoveLast
ComprobarConexion = Rs.RecordCount > 1
I wouldn't have expected it to work in ADO 2.6 and not in ADO 2.8.

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> So, thats an error from ADO?
>
[quoted text clipped - 79 lines]
>>>>>>>>
>>>>>>>> does anyone knows about it?