X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A3198D77CC for ; Wed, 9 Nov 2005 22:16:49 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78718-09 for ; Thu, 10 Nov 2005 02:16:46 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sapo.pt (relay4.ptmail.sapo.pt [212.55.154.24]) by svr1.postgresql.org (Postfix) with SMTP id C702EDA59C for ; Wed, 9 Nov 2005 22:16:47 -0400 (AST) Received: (qmail 23645 invoked from network); 10 Nov 2005 02:16:52 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.155) by relay4 with SMTP; 10 Nov 2005 02:16:52 -0000 Received: (qmail 4947 invoked from network); 10 Nov 2005 02:16:52 -0000 X-AntiVirus: PTMail-AV 0.3.87.1 X-Virus-Status: Clean (0.00457 seconds) Received: from unknown (HELO hmv02) (hmv@[82.155.153.93]) (envelope-sender ) by mta5 (qmail-ldap-1.03) with SMTP for ; 10 Nov 2005 02:16:52 -0000 Message-ID: <009201c5e59c$d0147e30$580bfea9@hmv02> From: =?iso-8859-1?Q?H=E9lder_M._Vieira?= To: References: <000a01c5e593$0651bb20$580bfea9@hmv02> <0d5901c5e594$5eb44480$0201a8c0@iwing> Subject: Re: 8.1.1.0, VB6, RDO, rdoResultset.RowCount Date: Thu, 10 Nov 2005 02:16:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.516 required=5 tests=[AWL=-0.403, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.516 X-Spam-Level: * X-Archive-Number: 200511/105 X-Sequence-Number: 6342 > this was discussed earlier today i think... > > the recordset has an EOF (end of file) flag. if rs.EOF equals False, then > there are rows in the resultset. Thanks and yes, EOF is indeed a much cleaner way for early testing of a potentially empty resultset. But now I have another disturbing situation, that came up during EOF tests... If I have a non-empty resultset, traveling all the way (using MoveNext) until EOF is found doesn't produce a valid RowCount. Only a MoveLast seems to do the job. I created a five rows / two columns table, opened a 'select *' resultset and performed the following sequence: With ordoRs .MoveFirst While Not .EOF Debug.Print .rdoColumns("f1"), .rdoColumns("f2"), .RowCount ' <---- RowCount is always equal to 0 .MoveNext Wend .MoveLast Debug.Print , , .RowCount ' <---- RowCount is correct End With This seems somewhat dangerous to me, although I must say I never made a similar test with any ODBC driver (as far as I can remember, I always used MoveLast to get an accurate RowCount). Helder M. Vieira