Results 1 to 4 of 4
  1. #1
    smthomer is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    2

    Control of horizontal scroll bar

    Hello All:



    I am working on a searchable form (left side is for entering criteria and right side is for displaying records matching criteria). The width of the form currently exceeds my screen so I see a horizontal scrollbar on the bottom. I would like to add a command button that when clicked will cause the scrollbar to move to the right. Can anyone assist?

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    You can click on the right blank area of the bar to go to right. same of left.
    Button is not needed.

  3. #3
    smthomer is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    2
    There will be multiple users for my database. If I can use a command button, it would be more intuitive.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    If your user have been using computer, they must know how to scroll the bar better than remember one more button to do this.

    If they have never used a computer, it's better to teach them this little skill. general skill can be use any where while you button works only for you form.

    Anyway, if you still want a button, here it is:
    assume RightControlName is the name of the most right side control,
    LeftControlName is the name of the most left side control,
    then click button CommandGoToRight will scroll the window to the right,
    click button CommandGoToLeft will scroll the window to the left

    Private Sub CommandGoToRight_Click()
    RightControlName.SetFocus
    End Sub
    Private Sub CommandGoToLeft_Click()
    LeftControlName.SetFocus
    End Sub

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Report and automatic scroll
    By krandall in forum Reports
    Replies: 1
    Last Post: 08-02-2010, 06:27 AM
  2. Horizontal Fields
    By labadee in forum Access
    Replies: 1
    Last Post: 06-27-2010, 09:22 PM
  3. Horizontal text alignment
    By jamil_kwi in forum Reports
    Replies: 2
    Last Post: 06-02-2010, 11:50 PM
  4. Horizontal listbox - ?
    By bane in forum Forms
    Replies: 3
    Last Post: 04-20-2010, 06:48 PM
  5. Auto Scroll in a Form
    By delliott777 in forum Forms
    Replies: 0
    Last Post: 05-31-2008, 07:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums