Results 1 to 2 of 2
  1. #1
    darrellx is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2006
    Posts
    7

    Customer ID from drop down list

    I have made a customer quote file with two tables. One for inventory items and another for customers. A form for inputting data that is as below.

    Customer ID (from customer list) type in data
    Customer Name (from customer list) auto fills when typing in customer ID
    Part Number (from inventory item list) type in data
    Description (from inventory item list) auto fills when typing in part number
    OEM (from inventory item list) auto fills when typing in part number
    Price type in data

    I would like to input the Customer ID from a drop down list and have it auto fill Customer Name. In the drop down list, I want to see both the Customer ID and Customer name.

    I am a somewhat novice with Access and am lost as to how to do this. Any help will be appreciated.



    Thanks

    darrellx

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    You need a multi-column combobox. Check this tutorial http://datapigtechnologies.com/flash...combobox3.html

    Sounds like you actually need 3 tables: Customers, Inventory, Quotes
    Quotes table would have records relating customer with inventory item.

    Fields would be: CustomerID (foreign key), InventoryID (foreign key), Quantity

    Should not be duplicating data from the Customer and Inventory tables. Only save the ID key value so tables can be linked.

    You need to gain a basic understanding of relational database. One principle is to not duplicate data. Check the 'sticky' thread tutorials at top of forum at this link http://forums.aspfree.com/microsoft-access-help-18/
    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. Customer Phone List Example form
    By pkstormy in forum Code Repository
    Replies: 2
    Last Post: 05-06-2017, 03:06 PM
  2. Replies: 4
    Last Post: 06-16-2011, 09:30 PM
  3. drop down list
    By tceicher in forum Access
    Replies: 5
    Last Post: 08-13-2009, 05:41 AM
  4. I can't create a drop-down list box
    By cpuser in forum Access
    Replies: 4
    Last Post: 02-18-2008, 10:11 AM

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