M
Matt W
Hi All
I'm looping through a recordset and updating one field in it. I have
prompts to indicate the values, so I know it is working "OK", but when
I leave the loop and re-read the values, it has copied the final value
for the last row into the entire field, rather than the individual
values.
Any help would be greatly appreciated!
Thanks!
Matt
The code is -
rs1.MoveFirst
Do While Not rs1.EOF
rs1.Edit
rs1!Radial_Distance = Sqr(((rs1!Model_East - a) * (rs1!
Model_East - a)) + ((rs1!Model_North - b) - (rs1!Model_North - b)))
V = rs1!Radial_Distance
MsgBox (V)
Ground = rs1!GS
MsgBox (Ground)
rs1.Update
rs1.MoveNext
Loop
MsgBox ("first dump after loop")
rs1.MoveFirst
Do While Not rs1.EOF
MsgBox (rs1!Model_East)
MsgBox (V)
MsgBox (Ground)
rs1.MoveNext
Loop
I'm looping through a recordset and updating one field in it. I have
prompts to indicate the values, so I know it is working "OK", but when
I leave the loop and re-read the values, it has copied the final value
for the last row into the entire field, rather than the individual
values.
Any help would be greatly appreciated!
Thanks!
Matt
The code is -
rs1.MoveFirst
Do While Not rs1.EOF
rs1.Edit
rs1!Radial_Distance = Sqr(((rs1!Model_East - a) * (rs1!
Model_East - a)) + ((rs1!Model_North - b) - (rs1!Model_North - b)))
V = rs1!Radial_Distance
MsgBox (V)
Ground = rs1!GS
MsgBox (Ground)
rs1.Update
rs1.MoveNext
Loop
MsgBox ("first dump after loop")
rs1.MoveFirst
Do While Not rs1.EOF
MsgBox (rs1!Model_East)
MsgBox (V)
MsgBox (Ground)
rs1.MoveNext
Loop