Results 1 to 8 of 8
  1. #1
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171

    Form scrolbar stops working once an item is selected in lisbbox

    I have a form that is working perfectly except that when you select an item from one of the multiselect listboxes on the form, the scrollbar on the form stops working.

    Any suggestions???

  2. #2
    lacigol is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    14
    Incoming speculation! Correct me if needed, but it sounds like your mouse wheel doesn't scroll when the listbox has focus. I assume when you click the up or down arrow on the scroll bar of the form it works. I'm speculating your issue to be that your mouse wheel works on the listbox when it has focus and on the form when it (or a non scrollable control) has focus. That's a bit tricky, but does your form scroll with the wheel when your mouse pointer is NOT on the listbox. Perhaps you need to click "off" the listbox control to get mousewheel working properly.

    Call me Christina Richee cuz imma reachin'!

  3. #3
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    Great speculation!
    It is the mouse. How do I handle "the focus" on a form with 7 listboxes so that it will work smoothly?

    Appreciate any suggestions!
    TIA!

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    Think about it. How does Access "Know" what to scroll? It scrolls what currently has the focus. If a listbox has the focus and there are not enough rows to show a scroll bar, nothing on the form will scroll.

  5. #5
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    I designed each list box so that there are no scroll bars. They are multiselect and each box shows the actual list of choices.

  6. #6
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    I designed each list box so that there are no scroll bars. They are multiselect and each box shows the actual list of choices.
    Good design. Do you still have a question or do you understand the conditions causing the mouse to not scroll the form when a listbox has the focus?

  7. #7
    PinkLady50 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    171
    Is there a way to get the focus back once you are out of the listbox area?

  8. #8
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,407
    If you are "out of the listbox area", I assume you mean something else has the focus. Usually the way to change the focus with a mouse is to click on something else. You can also tab out of a listbox if another control on the form has a tabstop set.
    If you want to scroll the form, just click the scroll bar on the form. Then the form has the focus.

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

Similar Threads

  1. Working query stops working after importing
    By Abacus1234 in forum Import/Export Data
    Replies: 3
    Last Post: 10-25-2015, 09:12 PM
  2. Access stops working and reloads
    By Simgene in forum Programming
    Replies: 4
    Last Post: 12-26-2014, 03:28 PM
  3. Replies: 2
    Last Post: 04-15-2014, 10:03 PM
  4. Replies: 7
    Last Post: 08-19-2011, 02:57 PM
  5. Having - Like stops working
    By tdalber in forum Queries
    Replies: 0
    Last Post: 02-03-2009, 04:30 PM

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