I have several tables that I would like to use the recordset object to update.
An example of the first table looks like this:
Col1 Col2 Col3 Col4 Calculation
Record 1 1 2 3 4 45
Record 2... 52
Record 3... 59
And I would like to take the calculation value from the first table, first record and put it here, in another table:
And record1 could be linked by a set ID number, since
Col1 Col2 Col3 Col4 Table1Calculation
Record 1 5 6 7 8 45
Record 2 52
Record 3 59
I've been trying something like this:
If rst1.[record1]=rst2[record1] then
rst1.Calculation=rst2.Table1Calculation
rst1.update
Is there something I'm missing here?
An example of the first table looks like this:
Col1 Col2 Col3 Col4 Calculation
Record 1 1 2 3 4 45
Record 2... 52
Record 3... 59
And I would like to take the calculation value from the first table, first record and put it here, in another table:
And record1 could be linked by a set ID number, since
Col1 Col2 Col3 Col4 Table1Calculation
Record 1 5 6 7 8 45
Record 2 52
Record 3 59
I've been trying something like this:
If rst1.[record1]=rst2[record1] then
rst1.Calculation=rst2.Table1Calculation
rst1.update
Is there something I'm missing here?