X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 033EAD1B285 for ; Thu, 5 Aug 2004 15:44:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53267-09 for ; Thu, 5 Aug 2004 18:44:15 +0000 (GMT) Received: from web20826.mail.yahoo.com (web20826.mail.yahoo.com [216.136.227.165]) by svr1.postgresql.org (Postfix) with SMTP id 93B97D1B1D1 for ; Thu, 5 Aug 2004 15:44:12 -0300 (ADT) Message-ID: <20040805184412.78858.qmail@web20826.mail.yahoo.com> Received: from [24.248.12.72] by web20826.mail.yahoo.com via HTTP; Thu, 05 Aug 2004 11:44:12 PDT Date: Thu, 5 Aug 2004 11:44:12 -0700 (PDT) From: Jeff Eckermann Subject: Re: Filter equivalent for Access bound form To: "David P. Lurie" , pgsql-odbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/7 X-Sequence-Number: 4316 --- "David P. Lurie" wrote: > Access 2003 > pg 7.4.3 > > What is the recommended approach to get the > equivalent of a filter for an > Access bound form? > > The filter property of a bound form seems to be the > equivalent of an Access > client-side query of SELECT * FROM form.recordsource > WHERE form.filter. That > would have a performance penalty. How much testing have you done? I have never had a problem with this, but then, I don't have to deal with any huge datasets. > > I change the SQL of pass-through queries dynamically > at runtime to use as > record sources for reports. That wouldn't work for > forms, as not updatable. > > Is the best approach to use an updatable view as the > record source, then > change the view definition at runtime as with a > passthrough query? Why would you need to do this? If you want to show different data to different users, then you reference the user name (e.g. current_user or session_user) in your view definition. > > Would need a unique view name for multi-user > reasons, perhaps including part > of a timestamp string or sequence. The original > view's insert, update and > delete rules should still have valid syntax except > for the new view name, as > only the WHERE clause and view name are changed. The > rules could be updated > with VBA code at the same time as the view change. Or you could just use unbound controls. Not really that difficult, but a lot of coding. Most of us are using Access in order to avoid all of that :-) > > Thanks, > > David P. Lurie > > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail