pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: raymond.chuasing@kasal.com
To: pgsql-odbc@postgresql.org
Subject: VB functions for postgres
Date: Wed, 19 Feb 2003 17:29:07 +0800 (PHT)
Message-ID: <1028.202.8.228.70.1045646947.squirrel@202.91.162.53> (raw)

I succeeded in connecting my vb application to a postgres db , I used this
code to connect
Dim MyConn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim MySQL As String
Dim rec_count As Long
MyConn.Open "DSN=PostgreSQL", "Mondi", "1234"
Set rs = New ADODB.Recordset
rs.Open "select * from userinfo;", Myconn, adOpenDynamic
then I use the Myconn.execute to execute some sql querries

Heres the prob:
- I don't know how to navigate thru the recordset
- rs.recordcount does not work
- only rs.movenext work
- when the table is empty or when you use movenext and there are no more
entries it creates an error msg : " runtime error 3021 either bof or eof
is true or the current record is deleted requested operation requires a
current record"
* I have read the tutorial on connecting visual basic to psqlODBC but the
codes there don't work.... :(

can anyone help me .... thx





view thread (2+ messages)  latest in thread

Message-ID: <1028.202.8.228.70.1045646947.squirrel@202.91.162.53>
Permalink:  ../1028.202.8.228.70.1045646947.squirrel@202.91.162.53/
Also on:    postgresql.org/message-id/1028.202.8.228.70.1045646947.squirrel@202.91.162.53

 · 

reply

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: raymond.chuasing@kasal.com
  Subject: Re: VB functions for postgres
  In-Reply-To: <1028.202.8.228.70.1045646947.squirrel@202.91.162.53>
  References: <1028.202.8.228.70.1045646947.squirrel@202.91.162.53>

* 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