Solved

Move to next record Access report

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
view mode vs edit mode 17 46
Unrecognized Database Format 8 88
Like Function in Query Dramatically Increasing Run Time 13 31
Newbie needs help printing from a form. 10 18
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

947 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

19 Experts available now in Live!

Get 1:1 Help Now