Results 1 to 8 of 8
  1. #1
    AFCDons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3

    Combobox very slow to fill form

    Hi,



    I have inherited a database that is running really slowly at certain points.
    There is a combobox that has a SQL select for the source row that returns the 4600 records very quickly.
    When I select a record from this drop down it can take up to a minute to fill the form below.
    If you use the arrows at the bottom it scrolls through each record immediately and it's the same if you enter a record number and hit enter.
    There is a macro for findrecord and this is also very slow.
    Can anyone give me an idea where to start looking as I thought that once it was in the combobox it was ready for selection.

    Any help appreciated.

    thanks
    John

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,531
    What happens if you hit the last record button at the bottom? My guess is that the form has loaded a few records and shown you the first record, but hasn't bothered to load the whole table (different animal than the combo rowsource).

    4600 isn't really that many records though, so I'm curious what the test above reveals. I might switch to a method that sets the form's source to a single record when you select from the combo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    AFCDons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3
    Hi Paul,

    Thanks for the quick reply. It moves straight to the end of the record set 4605. It's strange as I can't work out if they are loaded why it takes so long.

    thanks
    John

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,531
    What's the code behind the combo?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    AFCDons is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2014
    Posts
    3
    It's a very simple select query. It pulls through 4 fields from one table. No filter, all the records from the table. There are 4 combo boxes, one for each field.

    cheers

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,531
    I meant the code or macro that runs when you make a selection. That sounds like the row source.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,974
    What do you mean by 'fill the form'? What is the code (macro or VBA) behind the combobox that accomplishes this? Are you setting form RecordSource property? Or is the RecordSource a dynamic parameterized query referencing the 4 comboboxes and the code only requeries the form?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,531
    I will get out of June7's way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 09-10-2012, 07:19 AM
  2. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  3. ComboBox to ComboBox automatic fill
    By vbjohn in forum Access
    Replies: 2
    Last Post: 08-18-2011, 01:35 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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