pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gunawan <gunawan@ikp.component.astra.co.id>
To: pgsql-odbc-owner@postgresql.org
Subject: How to use this ODBC
Date: Fri, 11 Nov 2005 11:38:18 +0700
Message-ID: <00ee01c5e679$bd5f5520$6702a8c0@subfinance> (raw)

Dear All,
I need kind a favour from you since i meet difficulties to select a table
with Visual Basic 6.0.
this are my code :

Dim CN As New ADODB.Connection
Dim tks As String
Dim RS As New ADODB.Recordset

Private Sub Command1_Click()

     If CN.State = 1 Then CN.Close


      CN.Open _
          "DSN=postgreSQL;" & _
          "UID=FIN;" & _
          "PWD=FAIKP;" & _
          "Database=Finance"

     RS.CursorLocation = adUseClient

     tks = "SELECT KodeAkun From 'Akun' " --> *)

     RS.Open tks, CN, adOpenDynamic  ---> **)

     CN.Close
End Sub

**) I already could establish a connection to the database but still cannot
open the recordset.
*)  I try to replace the double quotes  (") that used in pSQL with quote(')
in order to run the SQL command, then an error messages shown as below:

"The instruction at"0x0476cd8a" referenced memory at "0x000000000". The
memory could not be "read".

Pls, did any of you could help me.

Regards Andi Gunawan

Message-ID: <00ee01c5e679$bd5f5520$6702a8c0@subfinance>
Permalink:  ../00ee01c5e679$bd5f5520$6702a8c0@subfinance/
Also on:    postgresql.org/message-id/00ee01c5e679$bd5f5520$6702a8c0@subfinance

 · 

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: gunawan@ikp.component.astra.co.id, pgsql-odbc-owner@postgresql.org
  Subject: Re: How to use this ODBC
  In-Reply-To: <00ee01c5e679$bd5f5520$6702a8c0@subfinance>
  References: <00ee01c5e679$bd5f5520$6702a8c0@subfinance>

* 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