Re: Visual Basic and PostgreSQL ODBC - Mailing list pgsql-general

From A_Schnabel@t-online.de (Andre Schnabel)
Subject Re: Visual Basic and PostgreSQL ODBC
Date
Msg-id 002e01c11735$127a6040$0201a8c0@aschnabel.homeip.net
Whole thread Raw
In response to Re: Visual Basic and PostgreSQL ODBC  ("Mr. Shannon Aldinger" <god@yinyang.hjsoft.com>)
List pgsql-general
----- Original Message -----
From: "Mr. Shannon Aldinger" <god@yinyang.hjsoft.com>
To: <pgsql-general@postgresql.org>
Sent: Saturday, July 28, 2001 7:32 AM
Subject: Re: [GENERAL] Visual Basic and PostgreSQL ODBC


> -----BEGIN PGP SIGNED MESSAGE-----
(...)
> Two solutions use .EOF or .BOF on your recordset, or .MoveLast, get the
> .RecordCount, then a .MoveFirst. If you don't do the .MoveLast the record
> count tends to stay at it's last value or one. This should get you on the
> right track, note I haven't tried this with postgresql as a backend, but
> it's what you have to do with MS backends.
(...)

Hi,
I have done some work with visual basic for Applications (Excel and Acces).
And ... it's horrible.
The .RecordCount in Excel is set right, when opening the Recordset an it's
updated, when inserting or deleting records.
With Access .RecordCount defaults to 0 after the recordset is created. I had
do .MoveLast to get the correct number. Furthermore .RecordCount is not
updated on .delete or .insert.
This happens with PostgreSQL and Oracle-datasouces.
So I use only .EOF to test, if there are records or not.

BTW: I hate this MS-Stuff for different behaviour in different application,
where it should behave the same way. But management says "It's our standard
... do it with MS" .... I'm very happy, i was allowed to use the
very-non-standard PostgreSQL :-)


Andre


pgsql-general by date:

Previous
From: "Mr. Shannon Aldinger"
Date:
Subject: Re: Visual Basic and PostgreSQL ODBC
Next
From: missive@frontiernet.net (Lee Harr)
Date:
Subject: Re: createdb after initdb