G
Guest
I seem unable to force a subform's current event from the main form under all
circumstances...
The subform is a continuous form and I need to be able to force the current
event for the subform from within the vb of the main form. Most of the time
standard techniques of .findfirst/.movefirst etc. do the job but sometimes,
especially when the subform's current record is the record that I need to
force the current event for, findfirst etc doesn't work, e.g.
me.subform.form.recordset.findfirst "seq = 3" won't force a current event if
the record where seq=3 is the current record.
I tried requery followed by findfirst which works for every record except
the first record. I have also tried move and absoluteposition but again,
these don't work when the current record is the one that I want to force a
current event for.
Incidentally it seems that, contrary to help pages, requery does not set the
current record to the first record - found this out by attempting to assign
one of the recordset's fields to a variable after requery and got the 'no
current record' error.
circumstances...
The subform is a continuous form and I need to be able to force the current
event for the subform from within the vb of the main form. Most of the time
standard techniques of .findfirst/.movefirst etc. do the job but sometimes,
especially when the subform's current record is the record that I need to
force the current event for, findfirst etc doesn't work, e.g.
me.subform.form.recordset.findfirst "seq = 3" won't force a current event if
the record where seq=3 is the current record.
I tried requery followed by findfirst which works for every record except
the first record. I have also tried move and absoluteposition but again,
these don't work when the current record is the one that I want to force a
current event for.
Incidentally it seems that, contrary to help pages, requery does not set the
current record to the first record - found this out by attempting to assign
one of the recordset's fields to a variable after requery and got the 'no
current record' error.