X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CCBDB47580B for ; Thu, 27 Mar 2003 22:35:08 -0500 (EST) Received: from hs.msc.edu.ph (unknown [210.23.230.199]) by postgresql.org (Postfix) with SMTP id CBA6F474E44 for ; Thu, 27 Mar 2003 22:34:48 -0500 (EST) Received: (qmail 29794 invoked from network); 28 Mar 2003 03:35:20 -0000 Received: from unknown (HELO Sol) (210.23.230.244) by 210.23.230.199 with SMTP; 28 Mar 2003 03:35:20 -0000 Message-ID: <001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph> Reply-To: "Sol M. Ferrer" From: "Sol M. Ferrer" To: Subject: HELP Date: Fri, 28 Mar 2003 11:47:34 +0800 Organization: MSC Software Division MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C2F51F.D2D59840" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Status: No, hits=0.4 required=5.0 tests=HTML_40_50 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/82 X-Sequence-Number: 2801 This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C2F51F.D2D59840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm using VB 6 with the database postgreSQL, my problem is when i used move= last or moveprevious .. error popup and say's "The row set does not support= fetching backwards". I attach my sample code. Option Explicit Dim WithEvents dbInvAct As ADODB.Connection Dim rsChart As ADODB.Recordset Private Sub Form_Load() Set dbInvAct =3D New ADODB.Connection dbInvAct.ConnectionString =3D "provider=3Dmsdasql.1; " & "data source= =3DPostgreSQL; initial catalog=3Daccounting;" dbInvAct.Properties("User Id").Value =3D "user" dbInvAct.Properties("Password").Value =3D "password" dbInvAct.Open =20=20=20=20 Set rsChart =3D dbInvAct.Execute("Select * from Chart") End Sub Function Next() If rschart.EOF Or rschart.BOF Then MsgBox "Database Empty!", vbCritical Else rschart.MoveNext If rschart.EOF Then MsgBox "End of File Encountered!", vbExclamation rschart.MoveLast=20 End If End If End Sub ------=_NextPart_000_0018_01C2F51F.D2D59840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
I'm using VB 6 with the database= =20 postgreSQL, my problem is when i used movelast or moveprevious .. error pop= up=20 and say's "The row set does not support fetching backwards". I attach my sa= mple=20 code.
 
Option Explicit
Dim WithEvents = dbInvAct=20 As ADODB.Connection
Dim rsChart As ADODB.Recordset
 
Private Sub Form_Load()
    Set dbInvAct = =3D New=20 ADODB.Connection
    dbInvAct.ConnectionString =3D=20 "provider=3Dmsdasql.1; " & "data source=3DPostgreSQL; initial=20 catalog=3Daccounting;"
    dbInvAct.Properties("User Id")= .Value=20 =3D "user"
    dbInvAct.Properties("Password").Value =3D= =20 "password"
    dbInvAct.Open
   =20
    Set rsChart =3D dbInvAct.Execute("Select * from=20 Chart")
End Sub
 
Function Next()
    If rschar= t.EOF Or=20 rschart.BOF=20 Then
           = =20 MsgBox "Database Empty!",=20 vbCritical
       =20 Else
           = =20 rschart.MoveNext
         &= nbsp; =20 If rschart.EOF=20 Then
           &= nbsp;   =20 MsgBox "End of File Encountered!",=20 vbExclamation
         &nbs= p;     =20 rschart.MoveLast 
           End= =20 If
    End If
End Sub
------=_NextPart_000_0018_01C2F51F.D2D59840--