I must be missing something here mate i'm sorry.
This is my query in SQL that works but duplicates entries with more than one date:-
SELECT qryAIRegister.TAG,qryAIRegister.DueDate
FROM AnimalRegister INNER JOIN qryAIRegister ON AnimalRegister.TAG = qryAIRegister.TAG
WHERE (((qryAIRegister.DueDate)>=Date()+60) AND ((AnimalRegister.[On Farm])=True))
ORDER BY qryAIRegister.TAG, qryAIRegister.DueDate;
I am not sure where the MAX function is to be inserted. I have tried quite a few things but most give me this error:-
"You tried to execute a query that does not include the specified expression 'TAG' as part of an aggregate function"
This is the error i got with this alteration to the SQL statement:-
SELECT qryAIRegister.TAG, MAX(qryAIRegister.DueDate) AS MaxDate
FROM AnimalRegister INNER JOIN qryAIRegister ON AnimalRegister.TAG = qryAIRegister.TAG
WHERE (((qryAIRegister.DueDate)>=Date()+60) AND ((AnimalRegister.[On Farm])=True))
ORDER BY qryAIRegister.TAG, qryAIRegister.DueDate;

Am i doing something wrong..?
I guess its probably just staring me in the face. Your assistance and my persistance will prevail though i think
Thanks