simon551
IS-IT--Management
- May 4, 2005
- 249
I can't figure out why the recordset for qryPriceMissing is not updateable. The query qryBalShares is updateable. I appreciate your help if you can.
qryPriceMissing
SELECT B.SecID, B.MgrID, B.Tckr, B.Description, Sum(B.BalShares) AS SumOfBalShares, P.RDate, P.Price
FROM qryBalShares AS B LEFT JOIN [SELECT * FROM tblPrices WHERE RDate=Forms!frmFMVRecon!txtDate]. AS P ON B.SecID = P.SecID
GROUP BY B.SecID, B.MgrID, B.Tckr, B.Description, P.RDate, P.Price, P.SecID
HAVING (((B.MgrID)=[Forms]![frmFMVRecon]![txtMgrID]) AND ((P.SecID) Is Null))
ORDER BY B.MgrID, B.Tckr;
qryBalShares
SELECT Sec.SecID, Sec.Tckr,Sec.Description,I.LotID,I.NumShares,S.NumSold,[NumShares]-Nz([NumSold],0) AS BalShares
FROM tblSecurities AS Sec INNER JOIN (tblInventory AS I LEFT JOIN tblSales AS S ON I.LotID = S.LotID) ON Sec.SecID = I.SecID
WHERE ((([NumShares]-Nz([NumSold],0))>0));
qryPriceMissing
SELECT B.SecID, B.MgrID, B.Tckr, B.Description, Sum(B.BalShares) AS SumOfBalShares, P.RDate, P.Price
FROM qryBalShares AS B LEFT JOIN [SELECT * FROM tblPrices WHERE RDate=Forms!frmFMVRecon!txtDate]. AS P ON B.SecID = P.SecID
GROUP BY B.SecID, B.MgrID, B.Tckr, B.Description, P.RDate, P.Price, P.SecID
HAVING (((B.MgrID)=[Forms]![frmFMVRecon]![txtMgrID]) AND ((P.SecID) Is Null))
ORDER BY B.MgrID, B.Tckr;
qryBalShares
SELECT Sec.SecID, Sec.Tckr,Sec.Description,I.LotID,I.NumShares,S.NumSold,[NumShares]-Nz([NumSold],0) AS BalShares
FROM tblSecurities AS Sec INNER JOIN (tblInventory AS I LEFT JOIN tblSales AS S ON I.LotID = S.LotID) ON Sec.SecID = I.SecID
WHERE ((([NumShares]-Nz([NumSold],0))>0));