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

    Try building a query object that has the sort order defined. Then do DLookup on that query.
    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
    Buyani is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Jun 2017
    Posts
    1
    Code:
    =ELookUp("CountOfActivityID","[3Wks0AttendanceMainQ ]","ActivityID = " & [Forms]![Form21]![form3new].[Form]![ActivityTableID])

    See square brackets around second parameter. (As Allen Browne says at http://allenbrowne.com/ser-42.html, any names with odd characters or starting with numbers need to have square brackets round them for his ELookup function to work.)

    Do you really meant to have a space at the end of your query name?

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

Similar Threads

  1. Error using ELookup but not DLookup
    By Rawb in forum Programming
    Replies: 12
    Last Post: 10-18-2010, 07:09 AM
  2. Replies: 3
    Last Post: 10-06-2009, 02:11 PM

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