Greetings all!
I am stuck with something at the moment, and that added to the cold thats got me in its icy grip is really batting my head

Basically I have a table of records:
Record_ID (id) | Employee_ID (pin) | Record_type (msgtype) | record_date | record_time (logtime)
What I am looking for is, for each employee_ID on a specific day, the Record_ID of the earliest record of type '5'. I've only got one date in there at the moment so thats not such a problem. My attempt was:
Code:
SELECT combined.ID
FROM combined
GROUP BY combined.pin
HAVING min(logtime);
but that didnt work, complaining that combined.id is not in the group by.
Can anyone provide any suggestions?
Thanks!
~Shiv
EDIT: Forgot to mention, I'm using MS Access....