pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ODBC problems with Visual Basic 6, but in Excel it works
2+ messages / 2 participants
[nested] [flat]

* ODBC problems with Visual Basic 6, but in Excel it works
@ 2003-08-01 10:00  Steffen Brodowski <brodowski@eucrea.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Steffen Brodowski @ 2003-08-01 10:00 UTC (permalink / raw)
  To: pgsql-odbc

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?

Greetings

Steffen Brodowski
brodowski@eucrea.com
Germany

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ODBC problems with Visual Basic 6, but in Excel it works
@ 2003-08-01 15:55  Andrew Ayers <aayers@eldocomp.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Andrew Ayers @ 2003-08-01 15:55 UTC (permalink / raw)
  To: ; +Cc: pgsql-odbc

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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-08-01 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-01 10:00 ODBC problems with Visual Basic 6, but in Excel it works Steffen Brodowski <brodowski@eucrea.com>
2003-08-01 15:55 Re: ODBC problems with Visual Basic 6, but in Excel it works Andrew Ayers <aayers@eldocomp.com>

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