Results 1 to 2 of 2
  1. #1
    ihaveaquestion is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2013
    Posts
    1

    Find records using combo box and text box

    I have a form (Contacts) with a combo box (namefinder) and a text box (idfinder), both of which are intended to store a integer value that corresponds to the field, "ContactID". I want to be able to use either option to find the record that matches.

    I had this working great when I had only the combo box. The bound column was "ContactID" but the visible columns were "Fname", "Lname". I set the Record Source for the form putting this criteria under ContactID:

    Like [forms]![Contacts].[namefinder] & "*"

    The text box will allow users to enter the ContactID and go to that record. But I can't figure out how to do this. Anyone know the solution? Maybe something in the form Record Source?



    Any help is appreciated! Thank you!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Never seen anyone try this.

    Is ContactID an autonumber field? Why are users even aware of ContactID? Why should they even need to search by this?


    Maybe:

    Like Nz([forms]![Contacts].[namefinder], [forms]![Contacts].[idfinder]) & "*"
    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.

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

Similar Threads

  1. Combo Box to find records from multiple tables
    By cbella625 in forum Access
    Replies: 3
    Last Post: 08-15-2013, 12:12 PM
  2. Trying to find a value right of specific string with in text
    By weilerda in forum Import/Export Data
    Replies: 2
    Last Post: 10-18-2012, 12:58 PM
  3. Replies: 10
    Last Post: 10-10-2012, 11:15 PM
  4. find all text string in Criteria at once
    By Jerseynjphillypa in forum Queries
    Replies: 3
    Last Post: 05-15-2012, 12:12 PM
  5. Can't find records in combo box
    By darklite in forum Forms
    Replies: 6
    Last Post: 07-07-2011, 02:33 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