X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6751BD1B501 for ; Thu, 16 Oct 2003 12:05:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87747-09 for ; Thu, 16 Oct 2003 09:05:23 -0300 (ADT) Received: from iris.multimedia-sa.gr (www.msc.gr [194.219.144.188]) by svr1.postgresql.org (Postfix) with ESMTP id 4CF0AD1B4F2 for ; Thu, 16 Oct 2003 09:05:16 -0300 (ADT) Received: from msc.gr ([194.219.144.171]) by iris.multimedia-sa.gr (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id PAA28039 for ; Thu, 16 Oct 2003 15:07:11 +0300 Message-ID: <3F8E8979.1000101@msc.gr> Date: Thu, 16 Oct 2003 15:05:13 +0300 From: Stefanos Karasavvidis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: el, en-us MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: link tables with VB from Access fails with 7.3.01 Unicode Beta Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/51 X-Sequence-Number: 3364 I have 2 problems with the 7.3.01 Unicode Beta (as well as 7.1.0115 from http://www.geocities.jp/inocchichichi/psqlodbc/) I have MS Access 2000 on windows 2000 with latest MDAC Postgres 7.3.4 on Linux I use the following VB code within MS Access to link a table without having a DSN Set db = CurrentDb() strConnect = "ODBC;DRIVER={PostgreSQL Unicode (Beta)};DATABASE=" + DB_NAME + ";SERVER=" + IP_ADDRESS + ";PORT=5433;UID=" + LOGIN + ";PWD=" + PASSWORD + ";A6=;A7=100;A8=4096;B0=254;B1=8190;BI=0;C2=dd_;CX=188103ab" Set tdef = db.CreateTableDef("xxxx") tdef.Connect = strConnect tdef.SourceTableName = "yyyyyy" db.TableDefs.Append tdef This worked perfectly with the previous versions of the drivers. Now I have the following problems: Problem 1 ========== With both drivers the above code initially fails. 7.3.01 reports a 7711 error and versions 7.1.0115 Run-time error '3151' Iff I manually link any table with a DSN datasource and rerun the above code, it works perfectly (except the other problem I will describe later). When I close Access and reopen it, I have again the same problem. if I don't link manually a table, the code does not work Problem 2 ========== although I specify CX=188103ab in the connection parameter, I get always CX=1b503ab in the actually linked tables. In my specific case this does not handle -1 as true. Does any oneone have a workaround or a solution for this problems? Regards Stefanos -- ====================================================================== Stefanos Karasavvidis Electronic & Computer Engineer e-mail : stefos@msc.gr Multimedia Systems Center S.A. Kissamou 178 73100 Chania - Crete - Hellas http://www.msc.gr Tel : +30 2821 0 88447 Fax : +30 2821 0 88427