Results 1 to 2 of 2
  1. #1
    x_zero is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2014
    Posts
    1

    How To Get Name From Table And Insert It As ID To Another

    i have an access database that contain 2 tables and 1 form :
    table1 named customers (custid-custname)
    table2 named sales(salesid-custid)
    form named form1 contain (salesid-custid)
    *note:in form1 custid is combobox
    what i need is when i select an customer from combobox the coulmn custid in sales table get custid not custname
    i use this sql statement to get combobox items from customers table


    Code:
    SELECT Cust.[Cust-Name] FROM Cust;
    sorry for my bad langue

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,648
    Form is bound to table2? Combobox is bound to CustID field from table2?

    Review: http://www.datapigtechnologies.com/f...combobox3.html
    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. Replies: 2
    Last Post: 12-20-2011, 07:33 AM
  2. Replies: 1
    Last Post: 12-28-2010, 11:24 AM
  3. Replies: 2
    Last Post: 12-22-2010, 01:46 PM
  4. Replies: 1
    Last Post: 12-20-2010, 03:54 PM
  5. Replies: 0
    Last Post: 02-24-2010, 12:56 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