Received: from mail.rdc1.md.home.com (imail@ha1.rdc1.md.home.com [24.2.2.66]) by hub.org (8.9.3/8.9.3) with ESMTP id XAA77656 for ; Mon, 29 Nov 1999 23:34:12 -0500 (EST) (envelope-from byron.nikolaidis@home.com) Received: from home.com ([24.4.141.52]) by mail.rdc1.md.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <19991130043409.TJMW14742.mail.rdc1.md.home.com@home.com>; Mon, 29 Nov 1999 20:34:09 -0800 Message-ID: <3843515B.CB44CFC2@home.com> Date: Mon, 29 Nov 1999 23:23:55 -0500 From: Byron Nikolaidis Organization: @Home Network X-Mailer: Mozilla 4.5 [en]C-AtHome0405 (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Brian Haney CC: pgsql-interfaces@hub.org Subject: VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562) References: <000901bf3977$972e7940$8101a8c0@specter.fresno.cybernaut.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Brian Haney wrote: > > I'm a newbie to PostgreSQL ODBC applications, so please forgive me if the is > a FAQ. > > I'm writing a VBA/Excel app (new to that, too) and am having great success > with retrieving data from PostgreSQL, but the recordsets (using DAO) are > flagged as not Updatable. I have made sure the the ODBC driver read-only > flag is set to off/false/zero, but no luck. I'm sure it's just my > ignorance, but where else should I look for the cause of getting > non-updatable recordsets? > > --Brian Haney > Do you have the right kind of recordset? The only updateable recordset I think is a dynaset. For the odbc driver to be able to use it, you probably have to use the cursor library, since the driver does not deal with keysets internally. So there should be a setting in VBA somewhere to tell it use the cursor library. You should have the "Use Declare/Fetch" flag disabled. You probably need to have the "recognize unique indexes" set to enabled, and of course you need a physical unique index on the table in question. Byron