I am able to get the following code to run in MS Access which is able to add a new row into the "NodeForce" table.
INSERT INTO [NodeForce] (nodeID, mem1, mem1min)
SELECT '1113', '1752-1', [Row_ID]
FROM [Element Forces - Frames] WHERE [FrameElem] = '1752-1'
AND [OutputCase] = 'Case2' AND [ElemStation] = 0
However, when I add one additional subquery such as:
INSERT INTO [NodeForce] (nodeID, mem1, mem1min, mem1max)
SELECT '1113', '1752-1', [Row_ID]
FROM [Element Forces - Frames] WHERE [FrameElem] = '1752-1'
AND [OutputCase] = 'Case2' AND [ElemStation] = 0,
[Row_ID] FROM [Element Forces - Frames] WHERE [FrameElem] = '1752-1'
AND [OutputCase] = 'Case6' AND [ElemStation] = 12
it produces an error "Number of query values and destination fields are not the same."
How can I insert multiple values using different subqueries?
I also tried:
INSERT INTO ...
VALUES ('1113', '1752-1', (SELECT ... FROM ...), (SELECT ... FROM ...))
which then gave me an error saying "Query input must contain at least one table or query"
Thanks in advance for your help!