Results 1 to 4 of 4
  1. #1
    chasemhi is offline Novice
    Windows Vista Access 2003
    Join Date
    Feb 2011
    Posts
    5

    Search for ID using Description

    Hi all, first time posting and thanks for the help.

    I have an MS Access Orders database (http://bit.ly/fxKsgG) and the customer name is displayed on a form, but the actual value behind the field is the customer ID. I want to be able to search for a customer by name. How can I do this if the field is based on the ID and not the name? I toyed with a text box that took the user-entered value and ran a query to return the customer ID, but I couldn't pass this value on to the form to display the customer's record.

    Thanks again.

    Chase

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536

  3. #3
    chasemhi is offline Novice
    Windows Vista Access 2003
    Join Date
    Feb 2011
    Posts
    5

    Search for ID using Description

    Thanks for the great link Alan. I will definitely use DataPig as a source of learning. Unfortunately this tutorial didn't help me with my search since I don't have the form based off of a query as the tutorial does. I will try playing with the customer ID to see if I can't filter the form based on the customer ID that is controlled by a dropdown menu.

    Chase

  4. #4
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    A couple of examples which may help (from the Code Repository section):

    (popup search form with alphabetical buttons - shows listing of customers, search by first or last name, click the 'A' button to see all names that begin with A, B button to see all names that begin with B, etc...etc... Once a customer is clicked, the data form opens based on that customerID)
    https://www.accessforums.net/code-re...ally-7688.html

    (Different search methods)
    https://www.accessforums.net/code-re...hods-7689.html

    (Another search method but includes data entry coding to find duplicate entries)
    https://www.accessforums.net/code-re...ames-7680.html

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

Similar Threads

  1. help in search
    By Nokia N93 in forum Programming
    Replies: 5
    Last Post: 01-14-2011, 01:49 PM
  2. Replies: 2
    Last Post: 08-31-2010, 08:57 PM
  3. How to access the description attribute
    By joethall in forum Access
    Replies: 1
    Last Post: 06-08-2010, 03:05 PM
  4. Query A part description /name
    By wvswede in forum Queries
    Replies: 5
    Last Post: 04-07-2010, 06:07 AM
  5. Search
    By DWS in forum Forms
    Replies: 3
    Last Post: 08-24-2009, 12:07 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