X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7B386329DF7 for ; Tue, 5 Oct 2004 00:31:21 +0100 (BST) 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 98525-08 for ; Mon, 4 Oct 2004 23:31:15 +0000 (GMT) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id BCFF032A2BB for ; Tue, 5 Oct 2004 00:31:17 +0100 (BST) Received: by ecintweb.eldocomp.com with XWall v3.29f ; Mon, 4 Oct 2004 16:31:17 -0700 From: Andrew Ayers To: "anthony.caduto@micorp.com" Cc: "pgsql-odbc@postgresql.org" Subject: Re: Access and PG ODBC problem Date: Mon, 4 Oct 2004 16:31:16 -0700 X-Assembled-By: XWall v3.29f Message-ID: <4161DD44.7000603@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.2 tagged_above=0.0 required=5.0 tests=EXCUSE_16, LINES_OF_YELLING, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200410/40 X-Sequence-Number: 4515 anthony.caduto@micorp.com wrote: >=20 > Hi, > I am trying to convert some access databases to use PG linked tables and= =20 > all was going good until I tried to do some stuff in VBA script.. >=20 > Dim conn As New ADODB.Connection > Set conn =3D New ADODB.Connection > conn.Open=20 > "driver=3D{PostgreSQL};server=3D192.168.1.29;port=3D5432;database=3Dmydb;= uid=3Dpostgres;pwd=3D;ksqo=3D;"=20 >=20 > Dim rs As New ADODB.Recordset > Set rs =3D New ADODB.Recordset > rs.CursorLocation =3D adUseServer > rs.Open "select * from lw_partnershipdata.switchboard_remote", conn,=20 > adOpenDynamic, adLockOptimistic, adCmdText >=20 > It all goes good until the last line and then I get this error: >=20 > Column "OID" does not exist >=20 > None of my tables have OIDs as they are large and I don't want the=20 > overhead of the OIDs. >=20 > Any help/Ideas would be appreciated. Don't know if this will help - but did you try checking "Row Versioning"=20 on in the ODBC driver? Andrew Ayers -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.