Re: Visual Basic and PostgreSQL ODBC

Поиск
Список
Период
Сортировка
От A_Schnabel@t-online.de (Andre Schnabel)
Тема Re: Visual Basic and PostgreSQL ODBC
Дата
Msg-id 002e01c11735$127a6040$0201a8c0@aschnabel.homeip.net
обсуждение исходный текст
Ответ на Re: Visual Basic and PostgreSQL ODBC  ("Mr. Shannon Aldinger" <god@yinyang.hjsoft.com>)
Список 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 по дате отправления:

Предыдущее
От: "Mr. Shannon Aldinger"
Дата:
Сообщение: Re: Visual Basic and PostgreSQL ODBC
Следующее
От: missive@frontiernet.net (Lee Harr)
Дата:
Сообщение: Re: createdb after initdb