pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Wilhelm Graiss <Wilhelm.Graiss@bal.bmlfuw.gv.at>
To: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Re: calling a pg-function from vba (Access 2002)
Date: Wed, 12 Nov 2003 15:57:22 -0800 (PST)
Message-ID: <20031112235722.47748.qmail@web20805.mail.yahoo.com> (raw)
In-Reply-To: <40925A3BA1EBD711A35C000102B6E57D06C9B0@BAL_PROXY00>

--- Wilhelm Graiss <Wilhelm.Graiss@bal.bmlfuw.gv.at>
wrote:
> Hello,
> 
> We have a question concerning the vba-code which is
> posted on
>
http://gborg.postgresql.org/project/psqlodbc/genpage.php?howto-accessvba:
> 
> We have a function in postgres (Version 7.3.2) and
> would like to call it
> from vba on Access 2002 (a.k.a XP) with different
> parameters each time.
> 
> We searched the Net and played with the code, but
> with no success. The
> connection to postgres works, the problem is how to
> trigger the "select
> myfunction(param1, param2, param3)" - thing from
> vba...

You need to do a passthrough query.  Just supplying a
connection string for your querydef will cause the SQL
to be sent directly to the server, instead of to Jet. 
So all you need then is to capture the parameters
according to your preference, construct your query
string and use it to set your sql property.

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



view thread (3+ messages)  latest in thread

Message-ID: <20031112235722.47748.qmail@web20805.mail.yahoo.com>
Permalink:  ../20031112235722.47748.qmail@web20805.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031112235722.47748.qmail@web20805.mail.yahoo.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: jeff_eckermann@yahoo.com, Wilhelm.Graiss@bal.bmlfuw.gv.at
  Subject: Re: calling a pg-function from vba (Access 2002)
  In-Reply-To: <20031112235722.47748.qmail@web20805.mail.yahoo.com>
  References: <40925A3BA1EBD711A35C000102B6E57D06C9B0@BAL_PROXY00> <20031112235722.47748.qmail@web20805.mail.yahoo.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