Results 1 to 4 of 4
  1. #1
    herbc0704 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    16

    Extracting info using dlookup?


    Not sure where to go with this.

    I have a table that has three columns.
    SKU, Date, Qty

    Each SKU can have mulitple dates and quantities. I would like to create a query that select each SKU and gives the earliest date(min/max) and the quantity associated with the date.
    Last edited by herbc0704; 10-04-2011 at 11:33 AM. Reason: spelling

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    This would be much more efficient that DLookup:

    http://www.baldyweb.com/LastValue.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    herbc0704 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    16
    Baldy Thanks it worked!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 05-16-2011, 04:11 PM
  2. Replies: 3
    Last Post: 01-31-2011, 11:47 AM
  3. Extracting text from a field
    By bwash70 in forum Access
    Replies: 4
    Last Post: 11-24-2010, 08:10 PM
  4. Extracting text from XML data
    By rob4465 in forum Access
    Replies: 1
    Last Post: 03-18-2010, 06:41 PM
  5. Extracting data after a keyword
    By KerryA in forum Queries
    Replies: 1
    Last Post: 02-11-2010, 09:56 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