pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Ayers <aayers@eldocomp.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: ODBC problems with Visual Basic 6, but in Excel it works
Date: Fri, 1 Aug 2003 08:55:37 -0700
Message-ID: <3F2A8D79.3010602@eldocomp.com> (raw)

Steffen Brodowski wrote:
> Hello programmers,
>  
> I try to connect to a postgres database with ODBC and Visual Basic 6.0.
>  
> The Postgres ODBC driver is 7.03.xx and it runs with Access, Excel and 
> MS-Query without any problems by using a DSN-file.
>  
> In VB 6.0 I'm using MS-ADO (ADO 2.7) and the same DSN-file an the 
> following error occurs:
>  
> "The provider can not be found! Perhaps it is not installed correctly."
>  
> Why it is running with Excel and Access? I think it's because Access and 
> Excel/MS-Query uses DAO and not ADO?!
>  
> Can anybody tell me, how to use MS-ADO and Postgres ODBC? Whats wrong?

Steffen,

Can you give us some sample source code showing everything you are doing 
up to the point where it fails (sounds like it is failing on the ADO 
open method)?

As far as DAO vs. ADO regarding ODBC for PG - I have had the best luck 
using ADO vs DAO. When I was using DAO, I kept running into problems 
with regards to TEXT fields (which I had converted from my Access DB 
Memo fields). Switching over to ADO fixed my issues. So, I would stick 
with ADO.

Andrew Ayers
Phoenix, Arizona

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



view thread (2+ messages)

Message-ID: <3F2A8D79.3010602@eldocomp.com>
Permalink:  ../3F2A8D79.3010602@eldocomp.com/
Also on:    postgresql.org/message-id/3F2A8D79.3010602@eldocomp.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: aayers@eldocomp.com
  Subject: Re: ODBC problems with Visual Basic 6, but in Excel it works
  In-Reply-To: <3F2A8D79.3010602@eldocomp.com>
  References: <3F2A8D79.3010602@eldocomp.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