i have this query which returns correct results,which i managed to put together after a few hours!!
Now need it to update a table, unitDetails.Status with "pending", so it needs to be an update query??SELECT Max(qryAllALARMS.SentTimeStamp) AS MaxDate, qryAllALARMS.PhoneNumber
FROM qryAllALARMS
GROUP BY qryAllALARMS.PhoneNumber
HAVING (((Max(qryAllALARMS.SentTimeStamp))<Date()-"7"));
qryAllALARMS.PhoneNumber will match unitDetails.phonenumber, sorry about my terminology, im new to all this
I have tried to build a query below but didnt get far!
UPDATE unitDetails SET unitDetails.Status = "Pending"
WHERE wot next here ??