Results 1 to 2 of 2
  1. #1
    Whizbang is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    37

    What is the underlying code in DLOOKUP?

    The Domain Aggregate functions are very slow, everyone knows this and has fought with it. ELookup is a good, fast solution (though with a couple limitations). But why is DLookup so slow? What is it doing that can sometimes take 2 or 3 seconds for a single calculation? Why is there such a variance in calculation time between DLookup and ELookup, when they both do the same thing? Has anyone ever cracked the DLookup function and taken a look at the code underneath to determine why it is the way it is? What does it do that ELookup does not do? Obviously it somehow handles parameter queries better, but would that really cause it to slow down so much? I can kind of see that it would have to convert parameter queries into sub-queries, but even then I don't see it adding a lot of processing time.



    Wierd. Anyone have any resources or insights for me?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I don't know why DLookup can be slow in queries. It is adequate for my needs in VBA.

    For those who don't know, ELookup is a custom function. Review http://allenbrowne.com/ser-42.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. DLookup Code Not Working
    By burrina in forum Forms
    Replies: 7
    Last Post: 02-21-2013, 10:36 PM
  2. dlookup code
    By slimjen in forum Forms
    Replies: 15
    Last Post: 02-02-2012, 09:59 PM
  3. help on DLookup code!
    By treyxman in forum Access
    Replies: 1
    Last Post: 07-25-2011, 11:23 AM
  4. Vba dlookup code help!
    By amsmakkah in forum Programming
    Replies: 1
    Last Post: 07-19-2011, 09:38 AM
  5. DLookup code not working
    By lukekelly in forum Programming
    Replies: 9
    Last Post: 06-15-2010, 06:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums