X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7FF4F9DCA02 for ; Tue, 7 Mar 2006 12:35:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59524-09 for ; Tue, 7 Mar 2006 12:35:50 -0400 (AST) X-Greylist: delayed 00:10:05.651953 by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id D250C9DC94D for ; Tue, 7 Mar 2006 12:35:49 -0400 (AST) Received: from oncpfxp4-out.onc.michelin.com (unverified [10.21.4.32]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Tue, 7 Mar 2006 11:25:11 -0500 Received: from ONCMH1.onc.michelin.com (ONCMH1.onc.michelin.com [156.65.124.40]) by oncpfxp4-out.onc.michelin.com (Postfix) with ESMTP id 1E1E31A6D9 for ; Tue, 7 Mar 2006 11:25:42 -0500 (EST) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 7 Mar 2006 11:25:41 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IVRMYS00.R40 for ; Tue, 7 Mar 2006 11:25:40 -0500 Received: from [10.43.12.183] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id for ; Tue, 7 Mar 2006 11:25:40 -0500 Message-Id: <440DB403.9090406@us.michelin.com> Date: Tue, 07 Mar 2006 11:25:39 -0500 From: "Campbell, Greg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Postgre and Visual Basic References: <44D9FC40FD695B4E85F1C59965C27E0FAA4DF0@man3.free2.local> In-Reply-To: <44D9FC40FD695B4E85F1C59965C27E0FAA4DF0@man3.free2.local> Content-Type: multipart/mixed; boundary="------------050408070707060100080100" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.361 required=5 tests=[AWL=-0.067, MAILTO_TO_SPAM_ADDR=0.276, RCVD_IN_WHOIS_INVALID=2.151, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 2.361 X-Spam-Level: ** X-Archive-Number: 200603/40 X-Sequence-Number: 7326 This is a multi-part message in MIME format. --------------050408070707060100080100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > project.dbScholl.Execute StrSql2 , , adCmdText First, test the SQL statement in something like the SQL window of pgAdmin. Then Is dbScholl a database object (like DAO) or an ADODB.Connection object? You should understand the difference and select one. Presuming that you really want ADO, Are you using liked tables? .. If so then use something like CurrentProject.Connection.Execute StrSql2 If not linked tables then use something like Dim cnn as new ADODB.Connection cnn.Open "DSN=my_dbs_dsn_name" 'or a full PostgreSQL connection string to save a trip to the registry cnn.Execute StrSql2 Tim Clarke wrote: > To debug this sort of issue, take VB out of the picture: once it has > processed the line creating StrSql2 for you, run the SQL directly in > Postgres via some other method (we use pgAdmin) and make sure that code > is OK. Then you'll know whether this is a VB or a Postgres issue. > > Tim Clarke > > -----Original Message----- > From: dodol garut [mailto:jangkaru80@yahoo.com] > Sent: 07 March 2006 15:24 > To: Tim Clarke > Subject: Re: [ODBC] Postgre and Visual Basic > > > When I insert a reccord from my form in VB, there was an error message > "no columns defined in rowset" > > and here is my query to insert that reccord: > dim StrSql2 as string > StrSql2 = "insert into produk(kodeproduk,namaproduk,hargasatuan) > values('" & text1.Text & "','" & Text2.Text & "'," & Text3.Text & ");" > > project.dbScholl.Execute StrSql2 , , adCmdText > > thanx before... > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly --------------050408070707060100080100 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------050408070707060100080100--