Hello,
What I need to do is the following:
I've added an extra number field to an existing Access table. I need to loop through the table and based on an existing numerical fields value, perform a calculation on the value and place the new value into the new number field.
So literally Update the table row with the new value.
I'm thinking I need to do VBA and loop through a recordset
eg.
if Field1 = number then
do calculation1
write to newfield
Recordset.MoveNext
End if
I just cannot figure the syntax.
Any ideas would be very helpful.
Thank you.
John
What I need to do is the following:
I've added an extra number field to an existing Access table. I need to loop through the table and based on an existing numerical fields value, perform a calculation on the value and place the new value into the new number field.
So literally Update the table row with the new value.
I'm thinking I need to do VBA and loop through a recordset
eg.
if Field1 = number then
do calculation1
write to newfield
Recordset.MoveNext
End if
I just cannot figure the syntax.
Any ideas would be very helpful.
Thank you.
John