Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770

    DLookup is the least preferred method as domain aggregate functions can perform slowly in queries and on forms. Try one of the other two methods. Or post your attempted DLookup() expression.
    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.

  2. #17
    Peter Simpson is offline Advanced Beginner
    Windows 10 Access 2007
    Join Date
    Oct 2017
    Location
    South Africa
    Posts
    83
    =DLOOKUP("[surname]","debtor details", "account number=13351/2")

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Space in field name - use []. Also, the field is text type so need apostrophe delimiters.

    =DLOOKUP("[surname]","debtor details", "[account number]='13351/2'")

    If you want to pull dynamically based on current record:

    =DLOOKUP("[surname]","debtor details", "[account number]='" & [account number] & "'")
    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.

  4. #19
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you please tell us about your tables and relationships?

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 10
    Last Post: 10-04-2017, 05:48 PM
  2. Replies: 3
    Last Post: 09-05-2016, 10:56 AM
  3. Replies: 9
    Last Post: 08-15-2014, 12:03 PM
  4. Replies: 3
    Last Post: 05-03-2014, 11:00 AM
  5. Replies: 1
    Last Post: 01-23-2014, 05:21 PM

Tags for this Thread

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