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 5E4E3D1B47D for ; Thu, 8 Jan 2004 14:41:32 +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 64648-04 for ; Thu, 8 Jan 2004 10:40:47 -0400 (AST) Received: from gk-us2.michelin.com (unknown [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 1AA25D1B46E for ; Thu, 8 Jan 2004 10:40:42 -0400 (AST) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Thu, 8 Jan 2004 09:34:53 -0500 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Thu, 8 Jan 2004 09:37:54 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id HR6E3V00.M4T for ; Thu, 8 Jan 2004 09:40:43 -0500 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Thu, 8 Jan 2004 09:40:43 -0500 Message-Id: <3FFD6BE7.C16F0A0D@us.michelin.com> Date: Thu, 08 Jan 2004 09:40:39 -0500 From: "Greg Campbell" X-Mailer: Mozilla 4.77 [en]C-CCK-MCD (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Guy Steven Cc: pgsql-odbc@postgresql.org Subject: Re: No Current Record References: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/10 X-Sequence-Number: 3639 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