+ Reply to Thread
Results 1 to 2 of 2

Setup a Query in a Table Based on Information in that Table

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Setup a Query in a Table Based on Information in that Table

    I'm very new to databases. I am not sure if this works. I have two tables.

    Table 1 contains 3 fields: Part No (Primary Key), Description and Type.
    Table 2 contains 2 fields: Part No (Primary Key) and Color


    I have the Part No in Table 2 configured as a List box and linked to the Part No in Table 1 where Table 1.Type = "X".

    I'd like to know if there is a way to have a "Description" field in Table 2 that will only display the corresponding Description of the Part No. I know I can create a new table with all the information I'm looking for. But I was hoping I could just modify Table 2 since it would be easier overall in the long run. I hope any of that made sense.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Setup a Query in a Table Based on Information in that Table

    Create a query, in SQL view paste this:

    Please Login or Register  to view this content.
    Then run the query and it will update Table2 Description to match Table 1. You need to add the field to Table 2 of course.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-15-2013, 09:38 AM
  2. table automatically populates based on information in other tabs
    By ea223 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-27-2013, 10:10 PM
  3. Replies: 0
    Last Post: 12-05-2012, 03:48 PM
  4. Replies: 3
    Last Post: 03-27-2012, 06:23 PM
  5. Table query based on date
    By manny_cb in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-31-2009, 11:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1