Results 1 to 2 of 2
  1. #1
    richaccessuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2014
    Posts
    1

    Maintaining an associated variable when grouping

    I have an issue using hte Simple Query Wizard in Access.

    I am attempting to Group by the field 'HouseName' and to group by the Max 'Area'. However I also want to retrieve from the query the County which is associated with this.
    I have included a sample table below. I wish for my output table to be as follows;

    HouseName: County: Area:
    Park 1 A 100
    Park 2 C 78
    Park 3 A 70

    (Where Park 1 is HouseName attribute, A is County attribute and 100 is Area attribute)



    Sample Input Table:

    HouseName: County: Area:
    Park 1 A 100
    Park 1 B 60
    Park 1 A 85
    Park 2 C 78
    Park 2 D 34
    Park 3 A 70

    In SQL View my query looks like this;

    SELECT TableExample.[HouseName], Max(TableExample.Area) AS MaxOfArea
    FROM TableExample
    GROUP BY Table.[HouseName];

    I would greatly appreciate if someone could help me in recommending how to link the associated County to the output.

  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,641
    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. Maintaining Data Integrity
    By jlt199 in forum Forms
    Replies: 6
    Last Post: 02-27-2014, 03:38 PM
  2. Replies: 11
    Last Post: 10-18-2013, 01:56 PM
  3. Replies: 2
    Last Post: 05-10-2013, 03:19 AM
  4. maintaining inventory in access
    By mmarwaha in forum Access
    Replies: 1
    Last Post: 01-16-2011, 06:23 AM
  5. Maintaining Control Focus
    By sabbo64 in forum Programming
    Replies: 3
    Last Post: 08-18-2009, 11:56 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