Haha sounds like far too much effort!
This still asks for parameter value for qryImportantEmails.MinofFile
My qryDuplicateEmails SQL:
SELECT kst_tbl.*
FROM kst_tbl INNER JOIN qryImportantEmails ON
(kst_tbl.From=qryImportantEmails.From) AND
(kst_tbl.Subject=qryImportantEmails.Subject) AND
(kst_tbl.Sent=qryImportantEmails.Sent)
WHERE (((qryImportantEmails.MinOfFile)<>[kst_tbl].[File]));
My qryImportantEmails SQL:
SELECT Min(tblFilePriority.FilePriority) AS MinOfFilePriority, kst_tbl.From, kst_tbl.Subject, kst_tbl.Sent
FROM kst_tbl INNER JOIN tblFilePriority ON kst_tbl.File = tblFilePriority.FileName
GROUP BY kst_tbl.From, kst_tbl.Subject, kst_tbl.Sent;
This still asks for parameter value for qryImportantEmails.MinofFile
My qryDuplicateEmails SQL:
SELECT kst_tbl.*
FROM kst_tbl INNER JOIN qryImportantEmails ON
(kst_tbl.From=qryImportantEmails.From) AND
(kst_tbl.Subject=qryImportantEmails.Subject) AND
(kst_tbl.Sent=qryImportantEmails.Sent)
WHERE (((qryImportantEmails.MinOfFile)<>[kst_tbl].[File]));
My qryImportantEmails SQL:
SELECT Min(tblFilePriority.FilePriority) AS MinOfFilePriority, kst_tbl.From, kst_tbl.Subject, kst_tbl.Sent
FROM kst_tbl INNER JOIN tblFilePriority ON kst_tbl.File = tblFilePriority.FileName
GROUP BY kst_tbl.From, kst_tbl.Subject, kst_tbl.Sent;
Last edited: