Hi All
How do I get the last entry in a field.
As I was reading the forums they said I should use the Max value it worked kinda but the problem is the corresponding amount banked is not the corresponding data to Max(date banked). How do I resolve the problem. How can I manipulate amount banked so it shows the correct values.
SELECT DonorDetailsIndividual.DonorName, DonorDetailsIndividual.DonorSurname, DonorDetailsIndividual.Visitor, DonorHistoryIndividual.BankedAmount, Max(DonorHistoryIndividual.DateBanked) AS MaxOfDateBanked
FROM DonorDetailsIndividual INNER JOIN DonorHistoryIndividual ON DonorDetailsIndividual.ID = DonorHistoryIndividual.ID
GROUP BY DonorDetailsIndividual.DonorName, DonorDetailsIndividual.DonorSurname, DonorDetailsIndividual.Visitor
HAVING (((DonorDetailsIndividual.Visitor)="Elections"));