Using Access 2003, WinXP Split FE, BE in Multi user enviorment.
I am currently trying to save the results of a union query to a table [tblBomMaterials] that shares a field named ItemNo (LI).
This info will be used at the time this Requisition is prepared and processed and then replaced with fresh data upon the next occurance.
Currently there are less then 400 records involved but in time there will be a few thousand so I felt a DLookup may not be the best choice here.
I plan to fire the action from a button on the form where the actual estimate takes place, thus the user can determine when to do so as this process may take place over a week or two.
Thus far it appears the Union Query creates a lock on the data and does not permit writing to the table, or is it me?
My Union Query: qryFalloutRates
I am currently trying to save the results of a union query to a table [tblBomMaterials] that shares a field named ItemNo (LI).
This info will be used at the time this Requisition is prepared and processed and then replaced with fresh data upon the next occurance.
Currently there are less then 400 records involved but in time there will be a few thousand so I felt a DLookup may not be the best choice here.
I plan to fire the action from a button on the form where the actual estimate takes place, thus the user can determine when to do so as this process may take place over a week or two.
Thus far it appears the Union Query creates a lock on the data and does not permit writing to the table, or is it me?
My Union Query: qryFalloutRates
Code:
SELECT DISTINCTROW qryProductionYield.ItemNo, Avg(qryProductionYield.SR) AS [Avg MS SR], Count(*) AS MsRuns
FROM qryProductionYield
GROUP BY qryProductionYield.ItemNo
Union All SELECT DISTINCTROW qryProductionYieldAssem.ItemNo, Avg(qryProductionYieldAssem.SR) AS [Avg Assem SR], Count(*) AS AsRuns
FROM qryProductionYieldAssem
GROUP BY qryProductionYieldAssem.ItemNo
UNION ALL SELECT DISTINCTROW qryProductionYieldTesting.ItemNo, Avg(qryProductionYieldTesting.SR) AS [Avg Testing SR], Count(*) AS TeRuns
FROM qryProductionYieldTesting
GROUP BY qryProductionYieldTesting.ItemNo
ORDER BY qryProductionYield.ItemNo;
[\code]
qryFalloutRates produces 3 fields:
ItemNo: Long Integer
Avg MS SR: Double
MSRuns: Long Integer
I would like to write [qryFalloutRates].[Avg MS SR] into tblBomMaterials.FalloutRate and [qryFalloutRates].[MsRuns] into tblBomMaterials.Runs WHERE [qryFalloutRates].ItemNo = tblBomMaterials.ItemNo.
Thanks,
UncleG