X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B1A3847580B for ; Wed, 19 Feb 2003 04:29:05 -0500 (EST) Received: from solar.webphilippines.com (unknown [202.91.162.53]) by postgresql.org (Postfix) with SMTP id 2651C475458 for ; Wed, 19 Feb 2003 04:29:04 -0500 (EST) Received: (qmail 5805 invoked by uid 48); 19 Feb 2003 09:29:07 -0000 Received: from 202.8.228.70 (SquirrelMail authenticated user raymond.chuasing) by 202.91.162.53 with HTTP; Wed, 19 Feb 2003 17:29:07 +0800 (PHT) Message-ID: <1028.202.8.228.70.1045646947.squirrel@202.91.162.53> Date: Wed, 19 Feb 2003 17:29:07 +0800 (PHT) Subject: VB functions for postgres From: To: X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/87 X-Sequence-Number: 2705 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=3DPostgreSQL", "Mondi", "1234" Set rs =3D 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