Solved

Select the first occurrence of a each multiple key record in an Access 2007 table.

Posted on 2013-06-01
1
360 Views
Last Modified: 2013-12-06
I have a table that looks like the following....

A                       B                                       C
Art                  Red                                    Vase
Art                  Blue                                   VASE
Art                  Pink                                    Truck
Joe                  Red                                     Blouse
Mike               Green                                 Moon

I WANT THE QUERY OUTPUT TO BE

Art                    Red                                  Vase
joe                    Red                                  Blouse
Mike                 Green                              Moon
0
Comment
Question by:aselbyjr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39213788
You can do this in Access:

Select a, first(b), first(c)
From yourtable
Group by a


But it loses its meaning if the table is reordered.  It is better to have a field such as an auto number to define order of record entry.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question