Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 1AF929FB57F for ; Fri, 23 Mar 2007 14:17:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 58601-04 for ; Fri, 23 Mar 2007 14:16:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yucaipaco.com (yucaipaco.com [82.165.181.113]) by postgresql.org (Postfix) with ESMTP id AAF0D9FB505 for ; Fri, 23 Mar 2007 14:16:54 -0300 (ADT) Received: (qmail 23945 invoked by uid 210); 23 Mar 2007 10:17:02 -0700 Received: from 10.23.112.225 by yucmail (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.90/2910. f-prot: 4.6.5/3.16.13. spamassassin: 3.1.3. perlscan: 1.25st. Clear:RC:1(10.23.112.225):. Processed in 0.448984 secs); 23 Mar 2007 17:17:02 -0000 Received: from unknown (HELO ?10.23.112.225?) (yucrelay@10.23.112.225) by yucaipaco.com with ESMTPA; 23 Mar 2007 10:17:01 -0700 Message-ID: <46040B5D.20502@yucaipaco.com> Date: Fri, 23 Mar 2007 10:16:13 -0700 From: David Gardner User-Agent: Thunderbird 1.5.0.10 (X11/20070305) MIME-Version: 1.0 To: Arnaud Lesauvage CC: pgsql-odbc@postgresql.org Subject: Re: Ctrl+F in MsAccess table is very slow References: <46011CE2.1000701@laposte.net> <4601557A.3010007@yucaipaco.com> <4603CD39.3010108@laposte.net> In-Reply-To: <4603CD39.3010108@laposte.net> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/109 X-Sequence-Number: 8787 I think Access not knowing if the server side fields have indexes is common in both tables and views. Are you viewing the table using a form or the tables? What I often do is make a form as a sort of search tool, with a text input box, and maybe a combo box to select the field I am searching in then you can do something like: sSearchItem = textBox.value sSearchField = comboBox.value sSQL = "SELECT * FROM yourTable WHERE " + sSearchFeild + " LIKE '" + _ sSearchItem = "';" set recordSet = currentDB.openrecordset (sSQL) Then you can put the results in a list box Set list.Recordset = recordSet This should be a bit faster than cntrl-F, not sure if it is appropriate for the project your working on, but I always seem to be making some kinda search form for my projects. Arnaud Lesauvage wrote: > David Gardner a écrit : >> Try this with and without the Declare/Fetch option checked. Also this >> may be a situation where you may have an index on your varchar field, >> yet Access doesn't know about it. >> >> Also what datatype does Access think the field is? I have run into >> problems where Access will think the text datatype is a Memo field (FAQ >> 6.5 & 6.6). While on the subject of Access being weird is either your >> index field or the codelocalite field declared as int8(bigint)? > > Hi David, > > Turning on or of UseDeclareFetch apparently makes no difference. > But you are right that the field is indexed and that Access doesn't know > about it (probably because the linked table is a view, not a real table ?). > > Apart from that, the field is a varchar and Access sees it as such, and > codelocalite is an int4 field, so I think everything is fine here. > > Regards, > -- > Arnaud > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate >