From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Łukasz Jarych <jaryszek@gmail.com>
To: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: VBA to connect to postgresql from MS Access
Date: Sat, 2 Jun 2018 11:52:45 -0700
Message-ID: <c6a48ee9-72e9-7c90-005d-195df2d0ca25@aklaver.com> (raw)
In-Reply-To: <CAGv31ocmVwvT9GRGEqaAyru7A5SrUfLEjxSQzvRdaKT=AaTV0Q@mail.gmail.com>
References: <CAGv31ocBxGw3YSf8MF-Y=tJu2FLJr_JgSHTtMhBh55V_eXD4uw@mail.gmail.com>
<CAGv31ocmVwvT9GRGEqaAyru7A5SrUfLEjxSQzvRdaKT=AaTV0Q@mail.gmail.com>
On 06/02/2018 11:15 AM, Łukasz Jarych wrote:
> Anyone?
https://www.postgresql.org/message-id/1527872841.3939.24.camel%40bret.machinemanagement.com>
> Jacek
>
> 2018-06-01 14:21 GMT+02:00 Łukasz Jarych <jaryszek@gmail.com
> <mailto:jaryszek@gmail.com>>:
>
> Hi Guys,
>
> When i have linked table based on DSN odbc connection to postgresql ,
> i am going to :
>
> VBA editor, in immediate window inputing:
>
> ?CurrentDb.TableDefs("TableName").Connect
> i have very strange connection string:
>
> ODBC;DSN=PostgreSQL35W;DATABASE=AccessTest;SERVER=localhost;PORT=5432;*CA=d;A7=100;B0=255;B1=8190;BI=0;C2=;CX=1c305008b;A1=7.4*
>
>
>
> When i was searching code for this in internet i found only:
>
> DRIVER={PostgreSQL Unicode(x64)};DATABASE=AccessTest;SERVER=localhost;PORT=5432;UID=postgres;PWD=1234;"
>
> but this is not working, why? I do not know what these CA, BO, BI
> strange paramaters.
>
> I want to use VBA to relink all tables and use DSN less connection
> string.
>
> Please help,
> Best,
> Jacek
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jaryszek@gmail.com
Subject: Re: VBA to connect to postgresql from MS Access
In-Reply-To: <c6a48ee9-72e9-7c90-005d-195df2d0ca25@aklaver.com>
References: <CAGv31ocBxGw3YSf8MF-Y=tJu2FLJr_JgSHTtMhBh55V_eXD4uw@mail.gmail.com> <CAGv31ocmVwvT9GRGEqaAyru7A5SrUfLEjxSQzvRdaKT=AaTV0Q@mail.gmail.com> <c6a48ee9-72e9-7c90-005d-195df2d0ca25@aklaver.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