X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E21DED6D1E for ; Fri, 11 Nov 2005 03:24:50 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 88105-06 for ; Fri, 11 Nov 2005 07:24:47 +0000 (GMT) Received: from hub.org (hub.org [200.46.204.220]) by svr1.postgresql.org (Postfix) with ESMTP id 2204DD6D19 for ; Fri, 11 Nov 2005 03:24:48 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by hub.org (Postfix) with ESMTP id E17C426FC42 for ; Fri, 11 Nov 2005 03:24:47 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93953-01 for ; Fri, 11 Nov 2005 07:24:45 +0000 (GMT) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id 41BD626FC3E for ; Fri, 11 Nov 2005 03:24:45 -0400 (AST) Received: by ganymede.hub.org (Postfix, from userid 1000) id 6534A474EE; Fri, 11 Nov 2005 03:24:47 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 5C387471AF for ; Fri, 11 Nov 2005 03:24:47 -0400 (AST) X-Return-Path: X-Received: from ganymede.hub.org ([unix socket]) by ganymede.hub.org (Cyrus v2.2.12) with LMTPA; Fri, 11 Nov 2005 00:45:39 -0400 X-Sieve: CMU Sieve 2.2 X-Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 91C2349D36 for ; Fri, 11 Nov 2005 00:45:38 -0400 (AST) X-Received: from mail.postgresql.org [200.46.204.71] by localhost with IMAP (fetchmail-6.2.5.2) for scrappy@localhost (single-drop); Fri, 11 Nov 2005 00:45:38 -0400 (AST) X-Received: from svr1.postgresql.org ([unix socket]) by svr1.postgresql.org (Cyrus v2.2.12) with LMTPA; Fri, 11 Nov 2005 00:41:49 -0400 X-Sieve: CMU Sieve 2.2 X-Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DD7A8DA67E for ; Fri, 11 Nov 2005 00:41:48 -0400 (AST) X-Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68654-10 for ; Fri, 11 Nov 2005 04:41:47 +0000 (GMT) X-Received: from postgresql.org (svr1.postgresql.org [200.46.204.71]) by svr1.postgresql.org (Postfix) with ESMTP id B6783DA280 for ; Fri, 11 Nov 2005 00:41:47 -0400 (AST) X-Original-To: pgsql-odbc-postgresql.org-owner@localhost.postgresql.org X-Delivered-To: pgsql-odbc-postgresql.org-owner@localhost.postgresql.org X-Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E1399D8F4F for ; Fri, 11 Nov 2005 00:41:46 -0400 (AST) X-Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93899-08 for ; Fri, 11 Nov 2005 04:41:45 +0000 (GMT) X-Greylist: delayed 00:06:36.267099 by SQLgrey- X-Received: from component.astra.co.id (unknown [219.83.51.116]) by svr1.postgresql.org (Postfix) with SMTP id AE2CFD7115 for ; Fri, 11 Nov 2005 00:41:44 -0400 (AST) X-Received: (qmail 14377 invoked from network); 11 Nov 2005 04:33:37 -0000 X-Received: from unknown (HELO 10.14.1.26) (10.14.1.17) by smtp.component.astra.co.id with SMTP; 11 Nov 2005 04:33:36 -0000 X-Received: from subfinance ([192.168.2.103]) by ikp.component.astra.co.id ([127.0.0.1]) with SMTP (MDaemon.PRO.v6.5.2.R) for ; Fri, 11 Nov 2005 11:53:23 +0700 Message-ID: <00ee01c5e679$bd5f5520$6702a8c0@subfinance> Reply-To: "gunawan" From: "gunawan" To: Subject: How to use this ODBC Date: Fri, 11 Nov 2005 11:38:18 +0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EA_01C5E6B4.696CFFE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-MDRemoteIP: 192.168.2.103 X-Return-Path: gunawan@ikp.component.astra.co.id X-MDaemon-Deliver-To: pgsql-odbc-owner@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org ReSent-Date: Fri, 11 Nov 2005 03:24:42 -0400 (AST) ReSent-From: "Marc G. Fournier" ReSent-To: pgsql-odbc@postgresql.org ReSent-Subject: How to use this ODBC ReSent-Message-ID: <20051111032442.C993@ganymede.hub.org> X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.851 required=5 tests=[AWL=1.851, HTML_MESSAGE=0.001] X-Spam-Score: 1.851 X-Spam-Level: * X-Archive-Number: 200511/141 X-Sequence-Number: 6377 This is a multi-part message in MIME format. ------=_NextPart_000_00EA_01C5E6B4.696CFFE0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_00EA_01C5E6B4.696CFFE0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Dear All,
I need kind a favour from you since i = meet=20 difficulties to select a table with Visual Basic 6.0.
this are my code :
 
Dim CN As New ADODB.Connection
Dim = tks As=20 String
Dim RS As New ADODB.Recordset
 
Private Sub = Command1_Click()
 
     If CN.State = =3D 1 Then=20 CN.Close
    =20
         =20
      CN.Open=20 _
          = "DSN=3DpostgreSQL;"=20 & _
          = "UID=3DFIN;"=20 & _
          = "PWD=3DFAIKP;"=20 & _
         =20 "Database=3DFinance"
        &= nbsp; 
    =20 RS.CursorLocation =3D adUseClient
    =20
     tks =3D "SELECT KodeAkun From 'Akun' " = -->=20 *)
         =20
     RS.Open tks, CN, adOpenDynamic  = --->=20 **)
    
     = CN.Close
End=20 Sub
**) I already could establish a = connection to the=20 database but still cannot open the recordset.
*)  I try to replace the double = quotes =20 (") that used in pSQL with quote(') in order to run the SQL command, = then an=20 error messages shown as below:
 
"The instruction at"0x0476cd8a" = referenced memory=20 at "0x000000000". The memory could not be "read".
 
Pls, did any of you could help = me.
 
Regards Andi = Gunawan
------=_NextPart_000_00EA_01C5E6B4.696CFFE0--