X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 65F2FD1EC1A for ; Wed, 24 Mar 2004 01:30:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 25071-08 for ; Tue, 23 Mar 2004 21:30:52 -0400 (AST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 65DFBD1EC75 for ; Tue, 23 Mar 2004 21:30:48 -0400 (AST) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B5xEI-0006p7-00 for ; Wed, 24 Mar 2004 02:30:50 +0100 Received: from 24-151-240-198.chartertn.net ([24.151.240.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 02:30:50 +0100 Received: from dbase4 by 24-151-240-198.chartertn.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 02:30:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: "David P. Lurie" Subject: Re: postgresql equivalent to ms access parameter query Date: Tue, 23 Mar 2004 20:31:04 -0500 Lines: 39 Message-ID: References: <20040323152604.94169.qmail@web20801.mail.yahoo.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 24-151-240-198.chartertn.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/73 X-Sequence-Number: 3875 "Jeff Eckermann" 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