Re: ado recordset.recordcount has value 0
From: Victor Koch ("Victor)
Date: 02/24/04
- Next message: Eric Margheim: "Timeout Expired Errors - Need Expert Consultant - Have done a ton of research already"
- Previous message: Developer: "Problem with pwd-protected Access .mdb"
- In reply to: pherms: "ado recordset.recordcount has value 0"
- Next in thread: Paul Baker [MVP, Windows - SDK]: "Re: ado recordset.recordcount has value 0"
- Reply: Paul Baker [MVP, Windows - SDK]: "Re: ado recordset.recordcount has value 0"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 12:27:06 -0300
Hi pherms, i believe is better use BOF and EOF properties to know if a
recordset have records.
Rs.Open "SELECT ................"
If Rs.BOF = False And Rs.EOF = False Then
' Recordset have records
else
' Recordset don't have records
endif
RecordCount Property is not supported for all providers.
-- Víctor Koch From Argentina. "pherms" <pherms@planet.nl> escribió en el mensaje news:63B09C44-6CE7-440A-8A1A-BE353A3616A6@microsoft.com... > I have this really weird problem. > When I query a database with a string, which I know will return only one record, by using an asp page, the recordcount object of the adodb.recordset has value 0. I do know that the sql query I use is ok, because I tested it in my database app. > > I use Windows 2003 server as the asp platform and I use mysql 4.0.18 ad the database. > > Please can anyone help me? It's dirving me crazy!
- Next message: Eric Margheim: "Timeout Expired Errors - Need Expert Consultant - Have done a ton of research already"
- Previous message: Developer: "Problem with pwd-protected Access .mdb"
- In reply to: pherms: "ado recordset.recordcount has value 0"
- Next in thread: Paul Baker [MVP, Windows - SDK]: "Re: ado recordset.recordcount has value 0"
- Reply: Paul Baker [MVP, Windows - SDK]: "Re: ado recordset.recordcount has value 0"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|