From: David P. Lurie <dbase4@hotmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: postgresql equivalent to ms access parameter query
Date: Tue, 23 Mar 2004 20:31:04 -0500
Message-ID: <c3qoc6$jaq$1@sea.gmane.org> (raw)
References: <c3ouup$n9p$1@sea.gmane.org>
<20040323152604.94169.qmail@web20801.mail.yahoo.com>
"Jeff Eckermann" <jeff_eckermann@yahoo.com> wrote in message
news:20040323152604.94169.qmail@web20801.mail.yahoo.com...
> You've unwittingly provided yourself with the answer
> below, i.e. construct a query string using the value
> of some control(s).
>
> You just need a piece of code that makes a connection
> to the server, constructs a query string, then sends
> the query to the server. ADO is good for this.
>
> So you don't really need a function, because either
> way you are doing the same thing, i.e. creating a
> query string using passed in values.
>
Thanks, that looks like the answer. Hope to have some time in the next day
or two to try it out.
The Access Linked Table Manager only displays DSN=xxx and DATABASE=yyy from
the connection string. It must get the other psqlodbc parameters from the
preconfigured DSN.
Passing the mouse pointer over the linked table icon in the database window
in Access displays what appears to be the entire psqlodbc connection string,
including ODBC as the first parameter, and TABLE=zzz as the last parameter.
I presume that a connection string would be something like:
connection_name.Open "Provider=ODBC; DSN=xxx ;DATABASE=yyy;"
An ADO recordset equivalent for the TABLE=zzz parameter could be:
recordset1.Open ''zzz", connection_name
David P. Lurie
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: dbase4@hotmail.com
Subject: Re: postgresql equivalent to ms access parameter query
In-Reply-To: <c3qoc6$jaq$1@sea.gmane.org>
References: <c3ouup$n9p$1@sea.gmane.org> <20040323152604.94169.qmail@web20801.mail.yahoo.com> <c3qoc6$jaq$1@sea.gmane.org>
* 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