I haven't had much occasion to use FOR loops, so I'm not surprised I confused
you.
Say you have a continuous form that is based on a table and it is filtered
to a particular set of criteria. One thing I would like to be able to do is
make a corresponding record in another table for each record displayed on the
form. I've wanted to do this for other things, too, but this was the task I
was trying to do now which incited the question. In this case, there are
other criteria and calculations I am doing in code, so it is not practical to
just try to use an append query.
In the past, when I have had to do this, I have made a recordset so I can
append one record, do an rs.movenext and append the next record. Since I
already have a recordset of sorts by means of the continuous form, I was
hoping to find an easy way to reference each row on the form, in turn. Sorry
if my sample code was confusing, I meant to imply that txtbox was the name of
a specific control. In English, the loop I was intending was "start at the
first record on the continuous form. Using the value in text box ABC run
some code, then move to the next record and access the value in text box ABC
again."
Is that any clearer?