Is it possible to use db.OpenRecordSet with a Select statement that includes Inner Joins? I am trying to pull a record using the SELECT statement I created using the Query design wizard in Access 2000. below is the statement I have from the wizard. What steps do I need to perform so I can intergrate this code into the vbCode?
'---------------- Start SQL Statement Here -----------------
SELECT Sum(nz([ProductTransactions].[ItemsReceived])-nz([ProductTransactions].[ItemsLost])-nz([ProductTransactions].[ItemsSold])) AS OnHand FROM Products INNER JOIN ProductTransactions ON [Products].[ProductID]=[ProductTransactions].[ProductID]
WHERE ((([Products].[SerialNumber])=[Forms]![Transactions]![TxtProdChkOut]));
Any Help will surely be appreciated
'---------------- Start SQL Statement Here -----------------
SELECT Sum(nz([ProductTransactions].[ItemsReceived])-nz([ProductTransactions].[ItemsLost])-nz([ProductTransactions].[ItemsSold])) AS OnHand FROM Products INNER JOIN ProductTransactions ON [Products].[ProductID]=[ProductTransactions].[ProductID]
WHERE ((([Products].[SerialNumber])=[Forms]![Transactions]![TxtProdChkOut]));
Any Help will surely be appreciated