Sorry I made a mistake. If the contract has a status of "Complete" then the number is available for use. If the status is anything else then the number is not available for use. So the sql would be
Select all BinNumbers.BinNumbers except those in Contract.BinNumbers WHERE the Contract.Status <>"Complete"
This is the way they are currently selected. I need to combine these two statements into one.
This is qNonCompleteContracts
SELECT ContractInformation.*, ContractInformation.txtIns
FROM ContractInformation
WHERE (((ContractInformation.txt
SELECT [BinNumber].[txtBinNumber]
FROM BinNumber LEFT JOIN qNonCompleteContracts ON [BinNumber].[txtBinNumber]
WHERE ([qNonCompleteContracts].[
Main Topics
Browse All Topics





by: TimCotteePosted on 2006-05-18 at 03:52:55ID: 16707256
Hi Moed,
Select BinNumbers.BinNumbers Where BinNumbers.BinNumbers Not In (Select Contract.BinNumbers From Contract Where Status <> 'Complete' And Status <> 'Incomplete')
Should do it.
Tim Cottee