G
Guest
I'm trying to produce a database will be used to track all the contracting
agreements we have with our clients. At the heart of the database are two
tables (tblFarms and tblContracts) which are related one to many
respectively. Each farm may have many contracts but only one of the contracts
for each farm will be current. The current contract can be identified as
having the greatest TermDate (Data Type: Date/Time, Short Date). I need a
query that produces a dataset with a calculated column of True/False value
that identifies the current contract for each farm.
The ultimate aim is to identify those contracts that are current (TermDate
is greatest out all all the contracts for a particular farm), that has
expired (tblContracts.TermDate < Now()) and where we are the current
contractors (tblFarms.FarmCurrent? = True) i.e. the contract and farm are
current but the agreement is out-of-date. This bit I can manage with the
exception of the TermDate = Greatest bit, for this I am asking your help.
I've only been using Access for 2 weeks but what I've managed to produced so
far is already proving useful (I'm also dead chuffed with it and myself)
Thanks in advance,
Russ.
agreements we have with our clients. At the heart of the database are two
tables (tblFarms and tblContracts) which are related one to many
respectively. Each farm may have many contracts but only one of the contracts
for each farm will be current. The current contract can be identified as
having the greatest TermDate (Data Type: Date/Time, Short Date). I need a
query that produces a dataset with a calculated column of True/False value
that identifies the current contract for each farm.
The ultimate aim is to identify those contracts that are current (TermDate
is greatest out all all the contracts for a particular farm), that has
expired (tblContracts.TermDate < Now()) and where we are the current
contractors (tblFarms.FarmCurrent? = True) i.e. the contract and farm are
current but the agreement is out-of-date. This bit I can manage with the
exception of the TermDate = Greatest bit, for this I am asking your help.
I've only been using Access for 2 weeks but what I've managed to produced so
far is already proving useful (I'm also dead chuffed with it and myself)
Thanks in advance,
Russ.