When I try to add by action query the sum of the previous values in the recordset - the sum isn't correct
I want table like this named Test:
Field1, MySumField
Test, 1
Test, 2
Test, 3
Test, 6
Test, 12
I've other table Rows like this...
Field1
Test, 1
And using those tables i'm using this SQL:
INSERT INTO Test (Field1, MySumField)
SELECT Field1, IIF(Dsum("MySum Field","Test"," ")>0,Dsum("MySu mField","Test", ""),1) FROM Rows;
And the wanted result isn't obtained..
Well staff like begin trans and commit trans are turned off hein..
I want table like this named Test:
Field1, MySumField
Test, 1
Test, 2
Test, 3
Test, 6
Test, 12
I've other table Rows like this...
Field1
Test, 1
And using those tables i'm using this SQL:
INSERT INTO Test (Field1, MySumField)
SELECT Field1, IIF(Dsum("MySum Field","Test"," ")>0,Dsum("MySu mField","Test", ""),1) FROM Rows;
And the wanted result isn't obtained..
Well staff like begin trans and commit trans are turned off hein..
Comment