Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form.bookmark always returns to first record

Status
Not open for further replies.

TTThio

Programmer
May 3, 2001
185
US
Hi,

My subform1 is using recordsetclone to make certain record become current record.

The code:

set rs = subform1.recordsetclone
rs.movelast
subform1.bookmark = rs.bookmark
msgbox "Last record"

I noticed something strange,
- subform1.bookmark set to rs.bookmark (last record),
- msgbox displayed
but soon after I clicked "OK"
- subform1.bookmark is returned to the first record.

When I applied this procedure to subform2, it worked.
Subform2.bookmark remained on the last record.

Is there something wrong with the subform? Or is it the underlying query?
What makes the procedure work in one subform and not the other, what makes the difference?

Please help....

Thanks a lot,
Tin Tin






 
is it possible, that your Sobform1 (or your mainform) has an On Activate event procedure with a Refreshcommand?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top