G
gsnidow via AccessMonster.com
Greetings folks. I have a Main form and sub form, linked by pk of main form
table. The pk of the sub's record source is an identity field. I have
navigation buttons on the sub so users can scan through all the records. The
problem is that there is a command button on the sub that does a requery of
the sub. After the requery is complete the user is returned to the first
record in the sub's set of records. I would like the sub to remain on, or
return to the current record after the refresh. I put a text box, txtID on
the sub that is bound to the sub's ID field. Then I put an unbound text box,
txtIDHolder, right next to it. Just before the me.requery action of the sub,
I populate txtIDHolder with the value in txtID. So far this seems to work.
Let's say I was on sub record having ID = 5, where there are records 1
through 5. After I do the requery the sub settles on record 1, but my
txtIDHolder still says 5. My question is, how can I make the sub return to
record 5 after the requery?
Greg
table. The pk of the sub's record source is an identity field. I have
navigation buttons on the sub so users can scan through all the records. The
problem is that there is a command button on the sub that does a requery of
the sub. After the requery is complete the user is returned to the first
record in the sub's set of records. I would like the sub to remain on, or
return to the current record after the refresh. I put a text box, txtID on
the sub that is bound to the sub's ID field. Then I put an unbound text box,
txtIDHolder, right next to it. Just before the me.requery action of the sub,
I populate txtIDHolder with the value in txtID. So far this seems to work.
Let's say I was on sub record having ID = 5, where there are records 1
through 5. After I do the requery the sub settles on record 1, but my
txtIDHolder still says 5. My question is, how can I make the sub return to
record 5 after the requery?
Greg