Results 1 to 4 of 4
  1. #1
    MadTom's Avatar
    MadTom is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Location
    CT and VT
    Posts
    206

    Looking for a better way on Combo Box

    I have a comboBox to add Location IDnumber into a tables, the comboBox displays 5 fields and has col 1 as bound field. When I type a number it goes to that record and adds ID to the table and listBox in the form. I have many locations (+1000) and not easy to find the correct IDnumber. I would like to select either IDnumber (autonumber) or Col 2 (string) as the autoExpand data in the comboBox. Is this possible? ComboBox not the best practice with this amount of records.
    Thanks!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe this link will help: http://allenbrowne.com/ser-32.html

  3. #3
    MadTom's Avatar
    MadTom is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Location
    CT and VT
    Posts
    206
    Link did help! I understand it better now.
    I did what I needed another way, I added a Query in Row Source, in the Query I used (Like "*" & [Enter Name:] & "*") for the criteria in the field I want.
    If I need to zero in on cmboBox info., I just double Click on comboBox, enter criteria and dropdown data is there.
    Thanks for your reply!

    In the comboBox Event I used:
    Code:
    Private Sub cboLocation_DblClick(Cancel As Integer) ' DblClick for new Query data in Location comboBox On Error Resume Next 'DoCmd.OpenQuery "tblBinsQuery" 'use if you need to open Query Table Me.cboLocation.Requery End Sub

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Excellent! Lots of good ideas on Allen's site. Thanks for the follow up.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-31-2017, 08:58 AM
  2. Replies: 7
    Last Post: 03-30-2015, 10:04 AM
  3. Replies: 2
    Last Post: 10-21-2014, 07:57 AM
  4. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  5. Replies: 4
    Last Post: 08-16-2011, 05:54 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