Results 1 to 2 of 2
  1. #1
    andrebmsilva is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    19

    Type of Querie that set the same ID to a group of items?

    Hello,

    I've tried a lot of options and so far i couldn't do what i need:

    Click image for larger version. 

Name:	Captura de ecrã 2012-10-22, às 11.07.37.png 
Views:	13 
Size:	54.0 KB 
ID:	9607
    Note: Instead of "Action" I meant "Update"

    I'm confused if I sholud use an Update Query or an Append Query...
    Should i follow this explanation "Update the data in one table by using data from another table" ?

    Thanks in advance,
    André

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Sound like you should have 3 tables

    Orders
    Baskets
    OrderInBasket or BasketContainsOrders (your choice -- this is a junction table)


    similar to Student and Courses (analogy)

    Students
    Courses
    StudentEnrolledInCourses

    Consider

    Students - 1 Tim, 2 Jim, 3 Jill, 4 Jane
    Courses - 1 math, 2 Chemistry, 3 Science, 4 Physics, 5 Music

    Tim takes Chemistry and Physics
    Jim takes Math, Physics and Music
    Jill takes Math and music
    Jane doesn't take any courses

    So StudentEnrolledInCourses where each enrollment record gets an Id 1,2,3 etc.

    1,1,2 Tim Chemistry
    2,1,4 Tim, Physics
    3,2,1 Jim Math
    4,2,4 Jim Physics
    5,2,5 Jim Music
    6,3,1 Jill Math
    7,3,5 Jill Music
    no records for Jane since she is not enrolled in any courses


    There is a free video tutorial on Junction table at
    http://www.youtube.com/watch?v=7XstSSyG8fw
    Last edited by orange; 10-22-2012 at 08:34 AM. Reason: tutorial reference

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

Similar Threads

  1. Need a querie that updates.
    By imlost2 in forum Queries
    Replies: 1
    Last Post: 08-20-2011, 09:06 AM
  2. Add A Querie to the Report
    By BowBeforeMeMySlave in forum Reports
    Replies: 3
    Last Post: 02-10-2011, 09:27 AM
  3. Number querie
    By Rigsby in forum Queries
    Replies: 3
    Last Post: 02-08-2011, 06:41 AM
  4. update querie
    By frcastro in forum Queries
    Replies: 1
    Last Post: 06-23-2010, 04:20 AM
  5. querie problem
    By TIMT in forum Queries
    Replies: 2
    Last Post: 05-31-2009, 10:12 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