X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BF7EC9DCB65 for ; Fri, 6 Jan 2006 20:00:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29711-07 for ; Fri, 6 Jan 2006 20:00:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id 640899DCB77 for ; Fri, 6 Jan 2006 20:00:17 -0400 (AST) Received: from oncpfxp4-out.onc.michelin.com (unverified [10.21.4.32]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Fri, 6 Jan 2006 18:59:15 -0500 Received: from ONCMH1.onc.michelin.com (ONCMH1.onc.michelin.com [156.65.124.40]) by oncpfxp4-out.onc.michelin.com (Postfix) with ESMTP id D743D16CE6 for ; Fri, 6 Jan 2006 19:00:20 -0500 (EST) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Fri, 6 Jan 2006 19:00:20 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id ISP40J00.R7B for ; Fri, 6 Jan 2006 19:00:19 -0500 Received: from [10.36.138.57] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Fri, 6 Jan 2006 19:00:18 -0500 Message-Id: <43BF048E.4050009@us.michelin.com> Date: Fri, 06 Jan 2006 19:00:14 -0500 From: "Campbell, Greg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linuxgps CC: Dave Page , Thomas Holschen , Ludek Finstrle , pgsql-odbc@postgresql.org Subject: Re: Antw: Re: VBA 6 crashes with WIN2K, Postgres 8.1, References: <43BE7FFA.3060606@invitel.hu> In-Reply-To: <43BE7FFA.3060606@invitel.hu> Content-Type: multipart/mixed; boundary="------------080400060700030406030603" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.178 required=5 tests=[AWL=0.026, RCVD_IN_WHOIS_INVALID=2.151, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 2.178 X-Spam-Level: ** X-Archive-Number: 200601/47 X-Sequence-Number: 6862 This is a multi-part message in MIME format. --------------080400060700030406030603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit What type of cursor are you using. The sample in the MSDN (VB6 era help) says to use Client side cursor to enable AbsolutePosition, AbsolutePage. I guess it makes sense. A server side cursor is a pointer to records on the server. A ForwardOnly cursor pulls back the recordset but only gives you a pointer to it, but doesn't know how many records are in the set or how to page it before it has gone to the end -- and it can't go backward. rule of thumb -- use: rsCursorLocation = adUseClient rs.open sql, cnn, adOpenStatic, adLockReadOnly, adCmdText ---- or something close to this rs.Open sql, cnn -- also works linuxgps wrote: > > > In the VB debugger, watching 'CN' the cn.DefaultData immediately after > the connection has > ' multi step error and it says to check the ole db status if applicable' > > Following this it reads the first record, but ! the "rs.AbsolutPage, > rs.AbsolutePosition" is "adPosUnknown" > > Is this a driver bug or I've missed up some setup, grant, odbc registry ??? > . > Dave Page wrote: > >> >> >> >> >>> -----Original Message----- >>> From: Thomas Holschen [mailto:Thomas.Holschen@hela-food.de] Sent: 06 >>> January 2006 11:20 >>> To: Ludek Finstrle; Dave Page >>> Cc: pgsql-odbc@postgresql.org >>> Subject: Antw: Re: [ODBC] VBA 6 crashes with WIN2K, Postgres 8.1, >>> why? which dll ?? >>> >>> The Example is installed with MSI-Installer for psqlODBC 08.01.0101. >>> It's installed as c:/Programme/psqlODBC/docs/howto-vb.html. >>> >> >> >> Nowhere in there does it mention updateable cursors - in fact, it was >> written long before they were even added to the driver. >> >> I just tested the example given, and with a few minor typo/thinko fixes >> it works just fine *except* for the RecordCount which has been the >> subject of recent discussion anyway. >> >> Regards, Dave >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 6: explain analyze is your friend >> >> >> > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend --------------080400060700030406030603 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------080400060700030406030603--