I am doing a report from a database which has fields:
Proposal No.
Version NO. etc
More than one proposal can have the same Proposal NO. ; but they have to have different version No. There is no limit of versions a proposal can have. The greatest version no. dentoes the final proposal.
Ex:
Proposal No. 6389 Version No. 1
Proposal No. 6389 Version No. 2
Proposal No. 6389 Version No. 3
[Version No. 3 is the final version]
I am doing a report which adds up the totals of the income we will be getting from these proposals.
My problem is this: I only need to include the latest or most recent proposal from the database and suppress all the rest. ex. for Proposal No. 6389 (above) i only need to
include version No. 3 in my report. I don`t know how to say
that the report is to make sure that incase of duplicate (or more than one record with the same Proposal NO. , it has to check the Version No. and then include only the record with the max. version no. (eg. the record with Version 3 in our case as it was the most recent version.)
Would appreciate any help. Thank you
Proposal No.
Version NO. etc
More than one proposal can have the same Proposal NO. ; but they have to have different version No. There is no limit of versions a proposal can have. The greatest version no. dentoes the final proposal.
Ex:
Proposal No. 6389 Version No. 1
Proposal No. 6389 Version No. 2
Proposal No. 6389 Version No. 3
[Version No. 3 is the final version]
I am doing a report which adds up the totals of the income we will be getting from these proposals.
My problem is this: I only need to include the latest or most recent proposal from the database and suppress all the rest. ex. for Proposal No. 6389 (above) i only need to
include version No. 3 in my report. I don`t know how to say
that the report is to make sure that incase of duplicate (or more than one record with the same Proposal NO. , it has to check the Version No. and then include only the record with the max. version no. (eg. the record with Version 3 in our case as it was the most recent version.)
Would appreciate any help. Thank you