Results 1 to 2 of 2
  1. #1
    bandidom9 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    6

    Dropdown Scroll


    I have a dropdown in a form that display over a 100 records. The scroll bar of this dropdown it wont scroll on the first attemp just after doinf the first selection it works. on the first attemp it just jump all the way to the bottom of the dropdown list. Does any one have an idea of why is this happening?

  2. #2
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    This is because Access doesn't load the entire Recordset before showing the Combo Box (or anything where a Recordset is used - run a Query on a large Table sometime, you'll notice that it doesn't know how many records are in the result until a few seconds AFTER showing you the results).

    One possible solution (although I've never tried it) is to check the Recordset when you "Enter" the Combo Box:
    1. User selects the Combo Box and triggers the "On Enter" Event.
    2. VBA code loads the Combo Box's Recordset and sets the current value of the Combo Box to the LAST item in the Recordset.
    3. VBA code then resets the Combo Box's current value to what it was before the user entered the Control.

    Theoretically, that would force the Combo Box to load the entire Recordset, thus allowing the user to scroll properly through it's contents. The tradeoff is that the Form may "freeze" for a split second the first time the VBA code is run and the Combo Box may "flicker" each time it's used (as it jumps to the last entry and then back to where it was).

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

Similar Threads

  1. Scroll Bar Issues
    By keith701a in forum Forms
    Replies: 2
    Last Post: 01-18-2012, 03:50 PM
  2. Scroll bar Issue
    By phool4fool in forum Forms
    Replies: 2
    Last Post: 12-28-2011, 03:10 PM
  3. Replies: 9
    Last Post: 05-23-2011, 06:12 PM
  4. Position of scroll bar
    By VictoriaAlbert in forum Access
    Replies: 2
    Last Post: 04-14-2011, 04:29 PM
  5. Customized Scroll Bar
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 09-05-2010, 04:26 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