Solved

Access scroll bar arrows step through records

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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.

728 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