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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bookmark Code Did Work...But Doesn't Now

Status
Not open for further replies.

DomDom3

Programmer
Jan 11, 2006
59
GB
Hi there,

I used the following code happily, but it no longer seems to work and I can't work out why. I've recently moved from windows 2000 to XP could this be the reason.

The code allowed me to make changes to a subform, then on update refresh another subform with the focus on the record that was bookmarked by the code.

'save updates
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
'bookmark current record
bk = Forms!frmInstallationoutlook.sfrmDataEntrySummaryView.Form.Bookmark
'refresh subform
Forms!frmInstallationoutlook.sfrmDataEntrySummaryView.Form.Refresh
'move record to bookmark
Forms!frmInstallationoutlook.sfrmDataEntrySummaryView.Form.Bookmark = bk
'set focus on bookmarked record
Forms!frmInstallationoutlook.sfrmDataEntrySummaryView.SetFocus

Does anyone have an inckling as to why this may have stopped working or is there another way I can bookmark?

Thanks
 
ya, I think gol4 is right.
you'll find something labeled "Missing".
If Not, reference the DAO. object Library 3.6 (something like that...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top