G
Guest
Hi there,
Here's one that's bugging me, I'm developing a quotes system and I have a
table containing job quotes that can contain more than one record (version of
a quote) per quote number (I need to maintain a full audit trail of previous
quote versions)
The table is, in very simplistic terms structured like;
|| QuoteID (AutoNum PK) || Quote Number (Num PK) || VersionNumber (Num PK)
|| All the other fields...
Obviously there's more to it than that but for the purposes of this question
it'll do.
What I need to do is create a query that will select only the highest
version of each quote number.
I can't for the life of me figure this one out. I'm guessing I need to be
looking at the general query properties but I seem to have hit an
inspirational brick wall. Can anyone point me in the right direction?
Here's one that's bugging me, I'm developing a quotes system and I have a
table containing job quotes that can contain more than one record (version of
a quote) per quote number (I need to maintain a full audit trail of previous
quote versions)
The table is, in very simplistic terms structured like;
|| QuoteID (AutoNum PK) || Quote Number (Num PK) || VersionNumber (Num PK)
|| All the other fields...
Obviously there's more to it than that but for the purposes of this question
it'll do.
What I need to do is create a query that will select only the highest
version of each quote number.
I can't for the life of me figure this one out. I'm guessing I need to be
looking at the general query properties but I seem to have hit an
inspirational brick wall. Can anyone point me in the right direction?