Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / September 2004

Tip: Looking for answers? Try searching our database.

Slow search when Search af Formatted

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Monte - 22 Sep 2004 14:29 GMT
I have linked from a regular ACC2002 MDB to a large SQl
table that is uniquely keyed on an nvarchar field. For
some reason, when I search for a record via that key
field, and "search as formatted" is checked it takes
nearly 10 times longer to find the record. Also, when I
use the 'findrecord' method in VBA, it seems to default to
using the "search as formatted" if that was left checked
by the user on the regular search dialog. Anyone else seen
this effect?
monte - 23 Sep 2004 15:28 GMT
you should buy a new computer!
Vadim Rapp - 27 Sep 2004 06:38 GMT
Hello Monte:
You wrote in conference microsoft.public.access.adp.sqlserver  on Wed, 22
Sep 2004 06:29:11 -0700:

M> I have linked from a regular ACC2002 MDB to a large SQl
M> table that is uniquely keyed on an nvarchar field. For
M> some reason, when I search for a record via that key
M> field, and "search as formatted" is checked it takes
M> nearly 10 times longer to find the record. Also, when I
M> use the 'findrecord' method in VBA, it seems to default to
M> using the "search as formatted" if that was left checked
M> by the user on the regular search dialog. Anyone else seen
M> this effect?

Yes, all the time, and this is reasonable.

Let's say, you have a column INT in the table. In Access, you can specify
"Format" it, for example Currency. Then you can search not for 1234 but for
$1,234.

Since the data in the actual sql server table is 1234, naturally, it's much
easier to find than $1,234. In order to search for "formatted" , Access has
to actually format each row and then compare. Hence the delay.

Vadim
----------------------------------------
Vadim Rapp Consulting
SQL, Access, VB Solutions
847-685-9073
www.vadimrapp.com
Monte - 27 Sep 2004 14:13 GMT
Vadim:
I always suspected that was what Access was doing. What I
didn't realise was that the VBA "findrecord" method would
default to 'search as formatted' if the user left the
search box dialog set-up that way. I guess I will try and
be more specific in the way I use Findrecord (i.e. don't
rely on the defaults).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.