Re: Visual Basic and PostgreSQL ODBC

From: "Mr(dot) Shannon Aldinger" <god(at)yinyang(dot)hjsoft(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Visual Basic and PostgreSQL ODBC
Date: 2001-07-28 05:32:23
Message-ID: Pine.LNX.4.31.0107280129310.27607-100000@yinyang.hjsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> "Ryan C. Bonham" wrote:
>
> Hi,
>
> Ok I have a problem, that I need to find a fix or workaround for. I have a
> Visual Basic 6 application that calls on a PostgreSQL database. I have code
> that calls a table and runs a loop on it, deleting recordsets until the
> recordcount equals a certain number.. The code deletes the records fine, the
> problem is the recordcount doesn't change.. Does anyone know what is going
> on and how to fix it? Thank you
>

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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75

iEYEARECAAYFAjtiTnoACgkQwtU6L/A4vVBifQCgkMTbhLbhgPEbYQyrUGKg5Vfh
hP4An35rDduD2oNELy3jJZV4PSSFWOmK
=h0Vj
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andre Schnabel 2001-07-28 07:15:24 Re: Visual Basic and PostgreSQL ODBC
Previous Message Ryan Ho 2001-07-28 04:46:17 Re: Visual Basic and PostgreSQL ODBC

Browse pgsql-odbc by date

  From Date Subject
Next Message Andre Schnabel 2001-07-28 07:15:24 Re: Visual Basic and PostgreSQL ODBC
Previous Message Ryan Ho 2001-07-28 04:46:17 Re: Visual Basic and PostgreSQL ODBC