[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Move to next record Access report

Posted on 2014-03-13
3
Medium Priority
?
2,107 Views
Last Modified: 2014-03-21
Hi i am trying to use the KeyDown event of a report to move to the next record using Bookmarks but seems to be that's only working for forms, is there a way how i can go to the next record in report without need to click with the mouse on the record ?
any help appreciated
0
Comment
Question by:yidel718
3 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 2000 total points
ID: 39927666
Make sure you are viewing the report in Report View (Access 2007 and higher).

If you are simply trying to go to the next record, you don't need bookmarks, just this:

DoCmd.RunCommand acCmdRecordsGoToNext

Open in new window


This won't work in Print Preview, which is static, like a printed page.  Report View, by contrast, behaves a little more like a form.
0
 
LVL 49

Expert Comment

by:Dale Fye
ID: 39932399
Unfortunately, Report view also fails to fire some of the Events associated with the report, so if you have code behind the report, don't be surprised if it doesn't work as expected.
0
 
LVL 1

Author Closing Comment

by:yidel718
ID: 39945695
needs to make sure to make tabstop of any field other than details to NO, otherwise it will get confused
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question