Hi
Can anyone help? I'm trying to find the latest date from a field along with the unique identifier against that instance. So, I have a list of release dates, barcodes all sharing the same artist name; how would I extract the barcode, release date (and artist name) for the record with the latest date? I try this:
SELECT EMIFile.Bcode, EMIFile.Product_Artist, Max(EMIFile.Reldate)
FROM EMIFile
WHERE (((EMIFile.Product_Artist)="UB40"
);
...which according to Access should do it, but get a message that it can't find "...barcode as part of an aggragate function". I.e. it doesn't allow mixing of a group by and simple select query, it would appear. Any ideas how I can get around this? I've been told the SQL above is OK
Thanks
Matt
Can anyone help? I'm trying to find the latest date from a field along with the unique identifier against that instance. So, I have a list of release dates, barcodes all sharing the same artist name; how would I extract the barcode, release date (and artist name) for the record with the latest date? I try this:
SELECT EMIFile.Bcode, EMIFile.Product_Artist, Max(EMIFile.Reldate)
FROM EMIFile
WHERE (((EMIFile.Product_Artist)="UB40"
...which according to Access should do it, but get a message that it can't find "...barcode as part of an aggragate function". I.e. it doesn't allow mixing of a group by and simple select query, it would appear. Any ideas how I can get around this? I've been told the SQL above is OK
Thanks
Matt