Results 1 to 3 of 3
  1. #1
    bkwadwania is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    1

    Working with a list from a different table

    I have list of 1200 customers for check cashing. Lets say Adam, Steve and Brad. I also have a list of 100 companies that the check is issued from. Lets say Adam and Steve work for Colors R Us and Brad works ABC Landscapers. So those companies i have are in a different table. I need to make a list where i enter checks that i have cashed for these customers. The new list would read Name of customer and his phone number (I need them both from check cashing table), name of the company (that would be from company table) and the amount and date of the check cashed. so how do i make this happen where i enter the name of the customer and select it as i type from drop down list.

  2. #2
    llkhoutx is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Relate customer list to company list, recognizing a customer will/can work for different companies, simultaneously or on at a time. Using a combo box to select a company and then the related customers in another combo box. Both combo boxes should be updateable on the fly.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,897
    That is called cascading or dependent comboboxes and is a very common topic. Search web or forum for examples and discussion.

    If you don't really need the cascading functionality, a single combobox can display the individual and company info in the dropdown list.

    I presume the Customers table has a foreign key field for the company ID primary key. Build a query that links Customers and Companies tables to be the RowSource of the combobox. Something like:

    SELECT CustomerID, LastName & ", " & FirstName AS FullName, Phone, CompanyName FROM Customers INNER JOIN Companies ON Companies.ID=Customers.CompID;
    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: 8
    Last Post: 12-13-2017, 10:38 AM
  2. Replies: 2
    Last Post: 04-05-2012, 08:39 PM
  3. Replies: 7
    Last Post: 08-19-2011, 02:57 PM
  4. Multi-record additions using a list box not working right
    By avarusbrightfyre in forum Programming
    Replies: 3
    Last Post: 10-27-2010, 01:50 PM
  5. Not In List event not working
    By Bruce in forum Forms
    Replies: 1
    Last Post: 03-12-2010, 02:24 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