Solved

Access scroll bar arrows step through records

Posted on 2014-10-15
2
248 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

726 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