Solved

Access scroll bar arrows step through records

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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…

706 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

14 Experts available now in Live!

Get 1:1 Help Now