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 801E1D1B17A for ; Thu, 5 Aug 2004 12:47:19 -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 99688-01 for ; Thu, 5 Aug 2004 15:47:18 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 74535D1B252 for ; Thu, 5 Aug 2004 12:47:15 -0300 (ADT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BskSY-0000Tx-00 for ; Thu, 05 Aug 2004 17:47:14 +0200 Received: from nc-65-40-164-161.sta.sprint-hsd.net ([65.40.164.161]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Aug 2004 17:47:14 +0200 Received: from dbase4 by nc-65-40-164-161.sta.sprint-hsd.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Aug 2004 17:47:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: "David P. Lurie" Subject: Filter equivalent for Access bound form Date: Thu, 5 Aug 2004 11:47:16 -0400 Lines: 27 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: nc-65-40-164-161.sta.sprint-hsd.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.8 tagged_above=0.0 required=5.0 tests=PRIORITY_NO_NAME X-Spam-Level: X-Archive-Number: 200408/4 X-Sequence-Number: 4313 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. 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? 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. Thanks, David P. Lurie