G
greg
I have a main form, frmHead, with a subform, sbfrmTail
based on tables, tblHead and tblTail. What I am trying to
do is change the values of the field, fldLine on the
subform from whatever to 0. The reason I am doing this,
is because, I have a function which will increment the
line numbers of the subform that works great. However, if
a user should delete one of the lines, it would be "nice"
to be able to "reset" the line numbers. In order to do
this, I need first, to reset the line numbers to 0, then
loop through again while calling the line number
function. This is what I have tried:
Private Sub Command15_Click()
With Forms!frmHead!sbfrmTail.Form.RecordsetClone
.MoveFirst
Do Until .EOF
Forms!frmHead!sbfrmTail.Form.fldLine = 0
.MoveNext
Loop
End With
Requery
End Sub
this and a dozen other configurations and examples which I
have looked up in the newsgroups, ms help and on the
internet. The above, will move to the first record and
change the value, but it won't loop through the rest of
the records. When I step through the code, it "appears"
to loop through them, but none of the other values are
changed. help please...
greg
based on tables, tblHead and tblTail. What I am trying to
do is change the values of the field, fldLine on the
subform from whatever to 0. The reason I am doing this,
is because, I have a function which will increment the
line numbers of the subform that works great. However, if
a user should delete one of the lines, it would be "nice"
to be able to "reset" the line numbers. In order to do
this, I need first, to reset the line numbers to 0, then
loop through again while calling the line number
function. This is what I have tried:
Private Sub Command15_Click()
With Forms!frmHead!sbfrmTail.Form.RecordsetClone
.MoveFirst
Do Until .EOF
Forms!frmHead!sbfrmTail.Form.fldLine = 0
.MoveNext
Loop
End With
Requery
End Sub
this and a dozen other configurations and examples which I
have looked up in the newsgroups, ms help and on the
internet. The above, will move to the first record and
change the value, but it won't loop through the rest of
the records. When I step through the code, it "appears"
to loop through them, but none of the other values are
changed. help please...
greg