I am having similar trouble. i have a table with a list of parts in products. this list of parts is pretty large, but i dont think it would be causing this trouble.
here is the SQL:
qryPartReplacementToolList
SELECT qryProdSitePartToolFilterList.SerialNumber, qryProdSitePartToolFilterList.ProductID, tblProductPartList.PartListId, tblProductPartList.IMWPartNumberID, dbo_PART.DESCRIPTION, tblProductPartList.QTY, tblProductPartList.OneKMaint, tblProductPartList.FiveKRebuild,
tblProductPartList.TenKRebuild, tblProductPartList.FtKRebuild, tblProductPartList.TwKRebuild, tblProductPartList.TwFKThouRebuild, tblProductPartList.ThKRebuild, tblProductPartList.ThFKRebuild, tblProductPartList.FtyKRebuild
FROM qryDontAddPartsToThese RIGHT JOIN (qryProdSitePartToolFilterList LEFT JOIN (tblProductPartList LEFT JOIN dbo_PART ON tblProductPartList.IMWPartNumberID = dbo_PART.ID) ON qryProdSitePartToolFilterList.ProductID = tblProductPartList.ProductID) ON qryDontAddPartsToThese.ProductID
= tblProductPartList.ProductID
WHERE (((tblProductPartList.IMWPartNumberID) Like [Forms]![frmProductPartReplacementTool]![txtIMWPartFilter]) AND ((qryDontAddPartsToThese.ProductID) Is Null))
ORDER BY qryProdSitePartToolFilterList.ProductID, tblProductPartList.IMWPartNumberID;
i have been over this backwards and forwards. i have looked through the sub queries i dont see where the trouble is.
here is sub query SQL:
qryProdSiteToolFilterList
SELECT tblProductList.ProductID, tblProductList.SerialNumber, tblProductList.ProductTypeID, qryCompConfiguration.CompressorType, qryCompConfiguration.CBBANumber, tblCustomerList.IMWCustomerID, tblCustomerList.CompanyName, tblSiteInformation.SiteCommonName,
subtblCountry.Country, tblServiceReps.Name AS ServRep
FROM tblServiceReps RIGHT JOIN (subtblCountry RIGHT JOIN ((tblSiteInformation LEFT JOIN tblCustomerList ON tblSiteInformation.CustomerListID = tblCustomerList.CustomerListID) RIGHT JOIN (qryCompConfiguration RIGHT JOIN tblProductList ON (qryCompConfiguration.ProductTypeID
= tblProductList.ProductTypeID) AND (qryCompConfiguration.ProductID = tblProductList.ProductID)) ON tblSiteInformation.SiteID = tblProductList.SiteID) ON subtblCountry.CountryID = tblSiteInformation.CountryID) ON tblServiceReps.ServiceRepID = tblSiteInformation.ServiceRepID
WHERE (((tblProductList.SerialNumber) Like [Forms]![frmProductPartReplacementTool]![txtSerialFilter] & "*") AND ((tblProductList.ProductTypeID) Like [Forms]![frmProductPartReplacementTool]![cbProductType]) AND ((subtblCountry.Country) Like [Forms]![frmProductPartReplacementTool]![cbCountry])
AND ((tblServiceReps.Name) Like [Forms]![frmProductPartReplacementTool]![cbServRep]))
ORDER BY tblProductList.SerialNumber;
qryCompConfiguration
SELECT subdatatblCompressor.ProductID, subdatatblCompressor.ProductTypeID, tblCBBANumbers.CBBANumber, subtblCompressorType.CompressorType
FROM tblCBBANumbers RIGHT JOIN (subtblCompressorType RIGHT JOIN subdatatblCompressor ON subtblCompressorType.CompressorTypeID = subdatatblCompressor.CompressorTypeID) ON tblCBBANumbers.CBBAID = subdatatblCompressor.CBAEMID
WHERE (((tblCBBANumbers.CBBANumber) Like [Forms]![frmProductPartReplacementTool]![cbCBA]) AND ((subtblCompressorType.CompressorType) Like [Forms]![frmProductPartReplacementTool]![cbCompType]));
qryDontAddPartsToThese
SELECT tblProductPartList.ProductID, tblProductPartList.IMWPartNumberID
FROM tblProductPartList
WHERE (((tblProductPartList.IMWPartNumberID) Like [Forms]![frmProductPartReplacementTool]![txtIMWPartToAdd]));
if anyone has any ideas or you see something wrong with my sql please post.