Results 1 to 3 of 3
  1. #1
    balajigade is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    30

    Dlookup Function

    I've used successffuly the Dmax function in my query-report to find the maximum value of a field "Qagg" in the query "Q1a-bat_br_results" with a criteria where the value of a field "failures" is equal to zero.


    =DMax("Qagg","Q1a-bat_br_results","failures = 0")

    Now I want to find the value of another field "htno" in the record against the above value of "Qagg" in the same query. I used the following syntax :

    =DLookup("htno","Q1a-bat_br_results","Qagg"=DMax("Qagg","Q1a-bat_br_results","failures = 0")")



    It isn't working. Pl suggest corrections.

    Regards

  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,646
    Try:
    =DLookup("htno","Q1a-bat_br_results","Qagg=" & DMax("Qagg","Q1a-bat_br_results","failures = 0"))
    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.

  3. #3
    balajigade is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Mar 2014
    Posts
    30
    Yes, it worked !! Thanks

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

Similar Threads

  1. DLookup Function
    By Alex Motilal in forum Programming
    Replies: 8
    Last Post: 08-14-2014, 01:15 PM
  2. Dlookup function Help
    By bronson_mech in forum Forms
    Replies: 20
    Last Post: 07-07-2013, 05:04 AM
  3. Dlookup Function
    By MarkHenderson in forum Queries
    Replies: 1
    Last Post: 11-19-2012, 03:00 PM
  4. DlookUp Function.
    By cap.zadi in forum Forms
    Replies: 11
    Last Post: 09-22-2011, 12:56 PM
  5. Need Help for Dlookup function
    By wasim_sono in forum Programming
    Replies: 5
    Last Post: 01-04-2006, 08:18 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