VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562) - Mailing list pgsql-interfaces

From Byron Nikolaidis
Subject VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562)
Date
Msg-id 3843515B.CB44CFC2@home.com
Whole thread Raw
In response to RE: pgsql-interfaces-digest V1 #562  ("Brian Haney" <brian@cybernaut.com>)
List pgsql-interfaces

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

************




pgsql-interfaces by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: [INTERFACES] Asynchronous connection functions - patch submitted
Next
From: Michael Meskes
Date:
Subject: Re: [INTERFACES] ERROR: cannot find attribute 1 of relation pg_temp.460.0