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 / April 2005

Tip: Looking for answers? Try searching our database.

DLookup problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill - 01 Apr 2005 23:16 GMT
I support an application which uses DLookup extensively in ADP code modules.

In the code, a DLookup statement executes, and then a stored procedure
executes a few lines later.

In the profile trace, I found to my surprise that frequently the stored
procedure actually completes BEFORE the DLookup statement, even though the
DLookup statement precedes it in the code.

This shouldn't be asynchronous, should it?  Should not the code execution
wait for the DLookup to complete before proceeding?

This is sometimes a problem, because the action taken after the DLookup
statement is determined by the results of the DLookup statement.

I'm going to get rid of the DLookup statement and see if it is corrected,
but I wonder if this is a common occurrence, and what is the cause of it.

Thanks
Bill
Sylvain Lafontaine - 06 Apr 2005 04:59 GMT
April Fool's Day?

S. L.

>I support an application which uses DLookup extensively in ADP code
>modules.
[quoted text clipped - 17 lines]
> Thanks
> Bill
J. Clay - 06 Apr 2005 16:17 GMT
I have found that the DLookup is very slow in ADPs.  You are much better off
using an ADO recordset to get any info you want.

Complete speculation here, but my guess is that DLookup uses Jet DAO, and in
an ADP needs to be translated to ADO to talk to the SQL Server, thus causing
a significant performance hit.  Whereas, ADO is native in an ADP thus there
is no performance hit.

Jim

> I support an application which uses DLookup extensively in ADP code modules.
>
[quoted text clipped - 16 lines]
> Thanks
> Bill
 
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.