Results 1 to 2 of 2
  1. #1
    aussie92's Avatar
    aussie92 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    18

    Angry Totals Query of MAX with Corresponding Values

    Hello all... I feel like this is a fairly simple task, but for the life of me I cannot figure it out...



    I have facility numbers that can correspond to several different types. Each of these types has a measurement of area (number; [AreaQTY]). They are all in one table. I would love to break them out into different, cascading tables (one for facility, one for type), but am not allowed at this point.

    Assuming the information is all in one table, I want to get the type of facility for the largest area.

    I am doing a totals query now with MAX AreaQty, but I cannot figure out how to just add the type without having it split it into groups. I just want to return the type per the largest area per each facility.

    I also tried doing a DLookup on the MAXOfAreaQTY, but I need to link this with Excel and I cannot use a Dlookup or an Elookup when linking to excel....

    Thoughts? Thanks!

  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,652
    Is this what you're after?

    http://www.baldyweb.com/LastValue.htm
    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. Excluding null values from a totals in a report
    By Andreshan in forum Reports
    Replies: 4
    Last Post: 02-25-2014, 12:52 PM
  2. Replies: 3
    Last Post: 02-24-2014, 02:19 PM
  3. Group Totals Based On Values
    By Poida3934 in forum Reports
    Replies: 1
    Last Post: 05-20-2013, 10:12 PM
  4. Can I count Null values in a totals query?
    By bgephart in forum Queries
    Replies: 2
    Last Post: 08-29-2012, 10:13 AM
  5. Replies: 5
    Last Post: 12-06-2011, 11:18 AM

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