Limiting results of a union query

G

Guest

My query returns records with 14 fields of data. My problem is that, under
certain circumstances, it will return records that are basically duplicate.
The first twelve fields are the same, but the last two (message date and
message time) are different. What I would like for Access to do is only
return the record with the latest message date and message time, when these
duplicates occur and only apply to the near duplicates. Any thoughts?
 
C

Chaim

Save the UNION query as a named query. Then use that as the record source
for a query that filters the records based on latest message date and time.

Are message date and time really stored as two separate fields, or are they
just being displayed that way?
 
G

Guest

I don't understand what you mean by "named query". Yes, the date and time
are stored in two separate fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Duplicates in union query 3
Union Query 4
Limiting Query Results 2
Union query 5
Limiting multiple results in query 7
Duplicate Values in Query 1
union query of complex queries 1
Query return duplicate results 1

Top