Hi,
I have a table (tblContacts) with separate fields for Date, Time, Group and Subject (there are others but these are the only ones I want). I'm trying to write a query that will generate a single record with those 4 fields for the latest contact for a specified Group. ie. I would like it to return Date, Time, Group, Subject for the most recent Date and Time.
The Group bit I'm ok with - it is linked to a combo button on a form. From there I have assumed that I will need to get the max date and from that the max time to produce the single record.
I can get the most recent Date using Max([Date]) but I can't seem to get the max Time from there.
Any help would be appreciated.
Cheers
I have a table (tblContacts) with separate fields for Date, Time, Group and Subject (there are others but these are the only ones I want). I'm trying to write a query that will generate a single record with those 4 fields for the latest contact for a specified Group. ie. I would like it to return Date, Time, Group, Subject for the most recent Date and Time.
The Group bit I'm ok with - it is linked to a combo button on a form. From there I have assumed that I will need to get the max date and from that the max time to produce the single record.
I can get the most recent Date using Max([Date]) but I can't seem to get the max Time from there.
Any help would be appreciated.
Cheers