Solved

Move to next record Access report

Posted on 2014-03-13
3
1,603 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 500 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 47

Expert Comment

by:Dale Fye (Access MVP)
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

809 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