Hi,
this select query only works half right.
it selects the contracts that have a finish date in the given year. the problem is that it shows all of the addendum connected to each contract.
how do i modify this to only select the contracts and the addendum that has a finishdate in the year provided
edit:
so i think that i need to do an INTERSECT between the code already posted and this one, which gives me the correct addendum results
but access doesn't support INTERSECT as far as I know
this select query only works half right.
Code:
SELECT Table1.ContractID, Table1.ContractFinishDate, Table2.AddendumID, Table2.AddendumFinishDate
FROM Table1 LEFT JOIN Table2 ON Table1.ContractID = Table2.ContractID
WHERE (((Table1.ContractFinishDate) Like "*" & [Year] & "*"));
how do i modify this to only select the contracts and the addendum that has a finishdate in the year provided
edit:
so i think that i need to do an INTERSECT between the code already posted and this one, which gives me the correct addendum results
Code:
SELECT Table1.ContractID, Table1.ContractFinishDate, Table2.AddendumID, Table2.AddendumFinishDate
FROM Table1 INNER JOIN Table2 ON Table1.ContractID = Table2.ContractID
WHERE (((Table2.AddendumFinishDate) Like "*" & [Year] & "*"));
Last edited: