Results 1 to 2 of 2
  1. #1
    hanyz.dx is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2

    multiple fields from single table update/select query

    Hi all,


    I'm trying to solve this issue:

    I've got 2 tables, 1st table (s_mo) has in record 3 fields with IDs of cabinets (s_mo.ID_SK1;2;3), 2nd table (s_cabinet) contains list of cabinets with related IDs (s_cabinet.id).

    I need to create query (other then UNION) which will look in s_cabinets and give back cabinet names (s_cabinet.name) to fields SK1, SK2, SK3 which will relate to ID_SK1;2;3 in s_mo

    thanks for advice

  2. #2
    hanyz.dx is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    2

    solution

    build n-to-1 relation between

    s_mo.ID_SK1->s_cabinet.ID
    s_mo.ID_SK2->s_cabinet.ID
    s_mo.ID_SK3->s_cabinet.ID

    statement below must be inserted in fields name in query declaration:

    SK1: (SELECT [NAME] FROM [s_cabinet] WHERE [s_mo].[ID_SK1]=[s_cabinet].[ID])

    and repeated for SK2 and SK3 in same query

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

Similar Threads

  1. Select Query > Update Query > Table Field
    By tuggleport in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 07:04 AM
  2. Replies: 29
    Last Post: 04-18-2011, 07:09 AM
  3. Replies: 2
    Last Post: 01-31-2011, 08:31 AM
  4. Replies: 7
    Last Post: 11-13-2010, 08:08 AM
  5. Multiple UPDATE in single query
    By nishezaman in forum Access
    Replies: 0
    Last Post: 12-13-2009, 01:40 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