From: Adrian Klaver <adrian.klaver@aklaver.com>
To: patrick.le-calvez@engie.com
To: pgsql-odbc@postgresql.org
Subject: Re: Driver issue ? Default value not recognized in access
Date: Wed, 18 Jan 2017 07:11:08 -0800
Message-ID: <caa7ed0a-2dca-dde5-5606-310cd47eb5b8@aklaver.com> (raw)
In-Reply-To: <6809b3d089224930a5ab977f74828b03@DP07CEXC21.MELINDA.LOCAL>
References: <2a41d058b82847748ceaf99104299d03@DP07CEXC21.MELINDA.LOCAL>
<649651bf-6a61-c642-9903-f8abe9b771e5@aklaver.com>
<6809b3d089224930a5ab977f74828b03@DP07CEXC21.MELINDA.LOCAL>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 01/17/2017 07:39 AM, patrick.le-calvez@engie.com wrote:
> Hello,
>
>
>
> Thanks for your answer,
>
> Here are the elements you asked :
>
>
>
>
>
> 1) How is the table in Access linked to the Postgres database?
>
> I create tables linked through a ODBC connection.
>
>
>
> Here are the parameters of the connection.
>
>
>
>
>
>
>
> 2) Where do you except the default value to show up?
>
>
>
> I expect the default value to appear in 2 places.
>
> First, I would like to see it there :
From what I can gather Access does not pull in the default values from
linked tables. The default value in the table description is something
you have to fill in yourself and is applicable only to Access itself.
>
>
>
> Second (and most of all), when I run my vba subs, I need to use the
> default values of some fields. At this state, vba does see any.
>
>
>
>
>
> 3) Is the default value created in the database when you INSERT a
> value without specifying it?
>
>
>
> Yes it is.
>
> More specifically, most of my records are inserted via a vba sub. That’s
> where I need those default values the most.
I do not use VBA so I will not be of much help there. All I can do is
point at:
https://msdn.microsoft.com/en-us/library/ms711683(v=vs.85).aspx
where there is:
COLUMN_DEF (ODBC 3.0) 13 Varchar
The default value of the column. The value in this column should be
interpreted as a string if it is enclosed in quotation marks.
More digging found this:
http://www.techrepublic.com/article/much-ado-about-field-properties/
Not sure if that will help or not.
>
>
>
>
>
> Have a good day,
>
>
>
> Patrick
>
>
>
>
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: adrian.klaver@aklaver.com, patrick.le-calvez@engie.com
Subject: Re: Driver issue ? Default value not recognized in access
In-Reply-To: <caa7ed0a-2dca-dde5-5606-310cd47eb5b8@aklaver.com>
References: <2a41d058b82847748ceaf99104299d03@DP07CEXC21.MELINDA.LOCAL> <649651bf-6a61-c642-9903-f8abe9b771e5@aklaver.com> <6809b3d089224930a5ab977f74828b03@DP07CEXC21.MELINDA.LOCAL> <caa7ed0a-2dca-dde5-5606-310cd47eb5b8@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