Results 1 to 2 of 2
  1. #1
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291

    What kind of query do I need?


    I have a table with many records. Each record has a [IDNumber], [Elevation], and an [Area] which there are 20 different possible areas.

    What I want is a list of every [IDNumber] that Is Null([Elevation]) = true
    but I want them grouped by area, is this possible?

    Any ideas?

  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,521
    Not clear on the structure or goal, but does this work?

    SELECT [IDNumber], [Area]
    FROM TableName
    WHERE [Elevation] Is Null
    ORDER BY [Area]

    Or if you're looking for one line per area, with a concatenated list of IDNumbers, you could adapt this:

    Return a concatenated list of sub-record values

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

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