Solved

Move to next record Access report

Posted on 2014-03-13
3
1,476 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
Comment Utility
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)
Comment Utility
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
Comment Utility
needs to make sure to make tabstop of any field other than details to NO, otherwise it will get confused
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now