I'm trying to run a query on specific archived documents (relating to networking documents) where the reference number may have more than one superseded version, but I don't want to return duplicate reference number records, I only need to see the reference number once, the version or date isn't important. I can't seem to run a query using "SELECT DISTINCT" where I'm selecting more than one field.
This code returns all unique reference numbers...
But I want to add several other fields to my query output, such as Title and Type, all of which should be exactly the same no matter which version or record number.
The code I have that DOESN'T work, it will return duplicates...
Any help would be appreciated.
thanks...
Daryl
This code returns all unique reference numbers...
Code:
SELECT DISTINCT Documents.ReferenceNumber FROM Documents WHERE (((Documents.ReferenceNumber)) Like "*" & "/NET/" & "*"));
The code I have that DOESN'T work, it will return duplicates...
Code:
SELECT DISTINCT Documents.ReferenceNumber, Documents.Title, Documents.Type FROM Documents WHERE (((Documents.ReferenceNumber) Like "*" & "/NET/" & "*"));
thanks...
Daryl
Comment