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 ED5AA5E46C2 for ; Fri, 6 Aug 2004 12:31:51 -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 01771-05 for ; Fri, 6 Aug 2004 15:31:54 +0000 (GMT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by svr1.postgresql.org (Postfix) with ESMTP id 364CB5E40BB for ; Fri, 6 Aug 2004 12:31:44 -0300 (ADT) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Bt6hD-00019O-00 for ; Fri, 06 Aug 2004 17:31:51 +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 ; Fri, 06 Aug 2004 17:31:51 +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 ; Fri, 06 Aug 2004 17:31:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: "David P. Lurie" Subject: Re: Filter equivalent for Access bound form Date: Fri, 6 Aug 2004 11:31:55 -0400 Lines: 52 Message-ID: References: <20040805184412.78858.qmail@web20826.mail.yahoo.com> 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/10 X-Sequence-Number: 4319 "Jeff Eckermann" wrote in message news:20040805184412.78858.qmail@web20826.mail.yahoo.com... > 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 don't have any large datasets; largest table at present only has about 10,000 records. Had created 2 views against the largest recordset for testing, one with a WHERE clause, and 2 bound forms, each using one of the views as a recordsource. The form using the view without the WHERE clause had the conditions in the WHERE clause used as a filter. I didn't put in timing code, but the filtered form seemed a little slower. Dropped and rebuilt the test views, forms, etc. and now don't see much difference. Phillipe had noticed difference between Access 2000 and Access 2002/2003 mdb, but I had already been using 2002/2003, as will be distributing runtime executable to my employees. Can't explain the difference in performance from first testing, but will try using filters in upcoming production version unless real world performance suffers. > > > > 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. > Was just creating unique name for the temporary view, for which string containing current_user would certainly be easier. All of my employees will have similar table permissions at the present time, as small office and similar tasks. David P. Lurie