G
George
I am trying to use the MoveFirst method in VBA. I have
several Access tables with two fields, Age and Rate. I
define a recordset and open the table in VBA. Then I use
the MoveFirst method to go to the start of the table.
Then I use the Move(age) method to move to the desired
row in the table. However, when I assign the value of
the Rate field to a variable, I get a different value in
the table. It appears the index is corrupted, so that
the MoveFirst method does not go to the first record (age
0). How can I fix this? Other tables work fine - when I
want a rate for age 50, the correct value is assigned to
the variable.
Or, is there a better way to index into a recordset/table?
Thanks,
George
several Access tables with two fields, Age and Rate. I
define a recordset and open the table in VBA. Then I use
the MoveFirst method to go to the start of the table.
Then I use the Move(age) method to move to the desired
row in the table. However, when I assign the value of
the Rate field to a variable, I get a different value in
the table. It appears the index is corrupted, so that
the MoveFirst method does not go to the first record (age
0). How can I fix this? Other tables work fine - when I
want a rate for age 50, the correct value is assigned to
the variable.
Or, is there a better way to index into a recordset/table?
Thanks,
George