X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id F2ECCD1B44D for ; Fri, 9 Jan 2004 00:08:41 +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 90159-07 for ; Thu, 8 Jan 2004 20:07:54 -0400 (AST) Received: from mta204-rme.xtra.co.nz (mta204-rme.xtra.co.nz [210.86.15.147]) by svr1.postgresql.org (Postfix) with ESMTP id 185C4D1B448 for ; Thu, 8 Jan 2004 20:07:35 -0400 (AST) Received: from web3-rme.xtra.co.nz ([210.86.15.143]) by mta204-rme.xtra.co.nz with ESMTP id <20040109000736.CJZT23908.mta204-rme.xtra.co.nz@web3-rme.xtra.co.nz>; Fri, 9 Jan 2004 13:07:36 +1300 Received: from localhost.localdomain ([210.86.29.201]) by web3-rme.xtra.co.nz with ESMTP id <20040109000736.EBPJ12184.web3-rme.xtra.co.nz@localhost.localdomain>; Fri, 9 Jan 2004 13:07:36 +1300 Received: from GUYSTEVEN ([192.168.0.106]) by localhost.localdomain (8.12.8/8.12.8) with SMTP id i08NBJT6025824; Fri, 9 Jan 2004 12:11:23 +1300 From: "Guy Steven" To: "Greg Campbell" Cc: Subject: Re: No Current Record Date: Fri, 9 Jan 2004 13:14:59 +1300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3FFD6BE7.C16F0A0D@us.michelin.com> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/12 X-Sequence-Number: 3641 This is really starting to confuse me. The primary key in postgres was on a field defined as an integer. access viewed this as a long integer. my understanding is that these both correspond to int4, so that should be fine. I added another column, using timestamp, to extend the primary key. This has made no difference, although in doing so I noted that the behaviour I am having trouble with only occurs if the new record is added using the form. If I add a record using the datasheet view of the table, I can do what I like with it, either in datasheet view or through a form. If however the record is added using a form, (this is a bound form using the linked table as its datasource), then problems arise. Guy Steven -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Greg Campbell Sent: Friday, 9 January 2004 3:41 a.m. To: Guy Steven Cc: pgsql-odbc@postgresql.org Subject: Re: [ODBC] No Current Record Troubleshoot how Access sees your table. In Access, choose to view the design of your table and ignore messages about that you will not be able to change things on a linked table. Are the fields what you think they should be numeric and character. Does your table have a primary key? It should. Is the postgres primary key float or int8 or serial8? That would be bad. Access/ODBC behaves best when your fields are int (int4) or serial (serial4). There is some indication that adding a timestamp field with a time of NOW() will allow Access to determine its (client) view of key matches the Postgres servers view of the key and match records for updating, etc. -- otherwise you tend to get non-updatable recordsets. There is some indication that tables that HAVE record OIDs help maintain the client-server key connection, avoiding the "no current record problems". I am a littles surprised at the ability to delete. Access tends to use a syntax of 'DELETE * FROM table' where Postgres insist on 'DELETE FROM table' with no *. I have to use pass-throughs to delete records. I not sure any of this will help but I figure it is worth a shot. Guy Steven wrote: > > I am experiencing a very frustrating problem with postgresql and access > 2000. > > I have a postgresql 7.2.4-5.80 database and am accessing it using access > 2000. > Tables are linked using odbc. > > I can read a table. I can add records to a table. I can edit and delete > existing records in the table, but I can not edit or delete records in the > table that were added using the odbc connection. By this I mean that records > that are imported into the postgresql (from a dump from pg_dump) can be > edited or deleted, but if I add a record from access, I can't edit or delete > from access. > From within psql the records look identical. > The error message I get is No Current Record. > > Guy Steven > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org