Results 1 to 2 of 2
  1. #1
    cdescandor is offline Novice
    Windows XP Access 2013 64bit
    Join Date
    Jan 2020
    Posts
    1

    Smile Combo Box Name Linked to a Contact Number & ID

    Hi,



    I am really a beginner in Access, just started exploring it to create an access database for my work. I wanted to create a combo box of Company Name that filters/linked the Name of Employees, Contact Number and ID when a particular company is selected.

    In this image below, the employee name & contact number will later be changed to a combo box. Thank you...

    Click image for larger version. 

Name:	access.jpg 
Views:	13 
Size:	48.0 KB 
ID:	40750

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    the form query would be bound to all Contacts.
    the CO NAME box should be unbound, but the query of source would pull CoName, CoID (cbo box bound to col.2, with col width zero so users only see CoName)
    then user selects item in box, then filter the form query:

    Code:
    sub cboBox_Afterupdate()
    If IsNull(cboBox) Then
      Me.FilterOn = False
    Else
      Me.Filter = "[CoID]='" & cboBox & "'"
      Me.FilterOn = True
    End If
    end sub

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

Similar Threads

  1. Replies: 2
    Last Post: 01-07-2020, 10:46 PM
  2. Replies: 13
    Last Post: 10-23-2018, 05:04 PM
  3. Replies: 22
    Last Post: 05-10-2014, 04:43 PM
  4. Replies: 2
    Last Post: 04-15-2014, 10:03 PM
  5. Replies: 2
    Last Post: 10-16-2009, 01:58 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