Results 1 to 6 of 6
  1. #1
    newbieX is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    111

    Autocomplete combo box on Access 2007 form doesn't get past first letter

    cbo_Office is a drop down combo box on a data entry form. Its property sheet looks like this (I think I got all the pertinent info)

    Rowsource = SELECT DISTINCT Primary.Office, Primary.Room FROM Primary ORDER BY Primary.Office;
    Control Source = Office
    Bound Column = 1
    Limit to List = No
    Allow Value List Edits = Yes
    Auto Expand = Yes
    Column Count = 2


    Column Widths 1";0"

    I am trying to type the primary district's name into the combo box and it only recognizes the first letter. Thus if I want to go to District "Central", when I type C it goes to the first record starting with "C"; however, when I type the next letter "E" it goes to the first record starting with "E" rather then "CE"

    Am I missing something here or is it that it simply can't be done in Access 2007.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Never encountered that with a combobox. That is more like listbox behavior.

    What is the destination table? Are you sure you have the ControlSource set to correct field?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    Last edited by June7; 02-03-2015 at 04:35 PM.
    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.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Although we usually think of Forms or entire Databases when we speak of corruption, individual Controls, such as Comboboxes, can and do become corrupted. The test and the fix are one and the same; deleting the Control then re-creating it! If it was corrupt, you've verified the fact and solved the problem! If not, you've only lost a minute or two!

    Linq ;0)>

  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,652
    Also make sure there's no code running in the change event that might be interfering with the auto complete. I've never seen this behavior either.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    newbieX is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    111
    Figured it out. I had a Me.Refresh in the On Change event. I put it in the After Update event instead and everything worked fine. I'm guessing every time you hit a letter it triggers the On Change event. Learn something new every day (or hour it seems with coding)

  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,652
    You are correct, the change event fires with each keystroke. Glad you got it sorted out.
    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: 12-28-2012, 01:26 PM
  2. Replies: 4
    Last Post: 09-18-2012, 05:07 AM
  3. Replies: 4
    Last Post: 01-08-2012, 01:57 PM
  4. Replies: 1
    Last Post: 05-23-2011, 02:15 AM
  5. Replies: 2
    Last Post: 08-03-2010, 02:47 PM

Tags for this Thread

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