See The Access Web article:
http://www.mvps.org/access/queries/qry0020.htm
--
HTH
Van T. Dinh
MVP (Access)
"Gordon Comstock" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'd like to ask a supplementary question to this thread.
>
> What if SD's table had an extra field called colour and the data looked
like this
>
> > > TicketNo Time Colour
> > > 2 8:00am Red
> > > 2 8:30am Green
> > > 2 4:00pm Yellow
> > > 3 11:00am Yellow
> > > 4 4:30pm Blue
> > > 4 5:00pm Red
> > > 5 10:30am Green
> > >
>
> How would you get it to return the colour that tallies with the earliest
time?
> > >
> > > 2 8:00am Red
> > > 3 11:00am Yellow
> > > 4 4:30pm Blue
> > > 5 10:30am Green
> > >
>
> Hope someone can help.
>
> Cheers
>
> Gordon