From: Campbell, Greg <greg.campbell@us.michelin.com>
To: linuxgps <linuxgps@invitel.hu>
Cc: Dave Page <dpage@vale-housing.co.uk>
Cc: Thomas Holschen <Thomas.Holschen@hela-food.de>
Cc: Ludek Finstrle <luf@pzkagis.cz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Antw: Re: VBA 6 crashes with WIN2K, Postgres 8.1,
Date: Fri, 06 Jan 2006 19:00:14 -0500
Message-ID: <43BF048E.4050009@us.michelin.com> (raw)
In-Reply-To: <43BE7FFA.3060606@invitel.hu>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7EDFA@ratbert.vale-housing.co.uk>
<43BE7FFA.3060606@invitel.hu>
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
Attachments:greg.campbell.vcf (text/x-vcard, 239B) download
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: greg.campbell@us.michelin.com, linuxgps@invitel.hu, dpage@vale-housing.co.uk, Thomas.Holschen@hela-food.de, luf@pzkagis.cz
Subject: Re: VBA 6 crashes with WIN2K, Postgres 8.1,
In-Reply-To: <43BF048E.4050009@us.michelin.com>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7EDFA@ratbert.vale-housing.co.uk> <43BE7FFA.3060606@invitel.hu> <43BF048E.4050009@us.michelin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox