I need to do the following:
I have a table named QuoteLog. It has a "QuoteID" field(duplicates allowed) and a "QuoteComments" field.
Each QuoteID can have multiple QuoteComments, so you could have QuoteID 1234 exist 10 times with comments for each..
I want to return the LAST record for each QuoteID in a SQL statement (for Access 97)...
So if there were 10 QuoteIDs with 10 QuoteComments each then there would be 100 records total - I want the last(the one most recently entered/modified) for EACH of the QuoteIDs - meaning I'd get 10 records.
If this is not doable, then a date entered field would suffice and returning the most recent one for EACH ID based on the date entered would be fine.
Please help!
Thanks
John M
I have a table named QuoteLog. It has a "QuoteID" field(duplicates allowed) and a "QuoteComments" field.
Each QuoteID can have multiple QuoteComments, so you could have QuoteID 1234 exist 10 times with comments for each..
I want to return the LAST record for each QuoteID in a SQL statement (for Access 97)...
So if there were 10 QuoteIDs with 10 QuoteComments each then there would be 100 records total - I want the last(the one most recently entered/modified) for EACH of the QuoteIDs - meaning I'd get 10 records.
If this is not doable, then a date entered field would suffice and returning the most recent one for EACH ID based on the date entered would be fine.
Please help!
Thanks
John M