pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sol M. Ferrer <smangubat@msc.edu.ph>
To: pgsql-odbc@postgresql.org
Subject: HELP
Date: Fri, 28 Mar 2003 11:47:34 +0800
Message-ID: <001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph> (raw)


I'm using VB 6 with the database postgreSQL, my problem is when i used movelast 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 = New ADODB.Connection
    dbInvAct.ConnectionString = "provider=msdasql.1; " & "data source=PostgreSQL; initial catalog=accounting;"
    dbInvAct.Properties("User Id").Value = "user"
    dbInvAct.Properties("Password").Value = "password"
    dbInvAct.Open
    
    Set rsChart = 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 
           End If
    End If
End Sub

view thread (6+ messages)  latest in thread

Message-ID: <001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph>
Permalink:  ../001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph/
Also on:    postgresql.org/message-id/001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph

 · 

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: smangubat@msc.edu.ph
  Subject: Re: HELP
  In-Reply-To: <001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph>
  References: <001b01c2f4dc$c50644a0$f4e617d2@msc.net.ph>

* 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