?
Solved

Access scroll bar arrows step through records

Posted on 2014-10-15
2
Medium Priority
?
262 Views
Last Modified: 2014-10-19
I have a sub-form that is set to continuous form, vertical scroll only. I would like to be able to click the scroll bar up/down arrows to step from record to record. Is this possible? Thanks for any help in advance.
0
Comment
Question by:mickferrari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
hnasr earned 1500 total points
ID: 40383412
Not sure about that in form scroll bars.

But you may mimic the action by adding two command buttons to the form, one named cmdNext in Form Header, and another named cmdPrevious in form Footer.

Private Sub cmdNext_Click()
    DoCmd.GoToRecord acDataForm, Me.Name, acNext
End Sub

Private Sub cmdPrevious_Click()
    DoCmd.GoToRecord acDataForm, Me.Name, acPrevious
End Sub

Open in new window

0
 

Author Comment

by:mickferrari
ID: 40390891
Hello hnasr,

That is a good work around for what i was after however I found a simple way to fix my problem. To get the scroll bar directional arrows to step through records the subform has to be the correct size, in other words the subform should have exactly the right height to fit one record. By doing this access allows you to step through each record using the scroll bar arrow buttons. It's not exactly what I wanted but will work well enough.

I'll accept your answer as the solution because it is an effective and simple work around for this problem, especially if you need a subform to be taller or shorter than what access will accept to allow record stepping using the scroll bar arrow keys.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

752 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