pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Byron Nikolaidis <byron.nikolaidis@home.com>
To: Brian Haney <brian@cybernaut.com>
Cc: pgsql-interfaces@hub.org
Subject: VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562)
Date: Mon, 29 Nov 1999 23:23:55 -0500
Message-ID: <3843515B.CB44CFC2@home.com> (raw)
References: <000901bf3977$972e7940$8101a8c0@specter.fresno.cybernaut.com>



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



Message-ID: <3843515B.CB44CFC2@home.com>
Permalink:  ../3843515B.CB44CFC2@home.com/
Also on:    postgresql.org/message-id/3843515B.CB44CFC2@home.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: byron.nikolaidis@home.com, brian@cybernaut.com, pgsql-interfaces@hub.org
  Subject: Re: VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562)
  In-Reply-To: <3843515B.CB44CFC2@home.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox