Results 1 to 12 of 12
  1. #1
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6

    combining 2 tables

    I have a list of Depts in one Table and a list of Id's in another.
    What I want to do is for every dept. I want every ID listed.

    So if I have Dept 1000 and I have Id's 1-85. I want 1000 1, then 1000 2, then 1000 3, etc.


    THanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are going to have to be a little clearer as to what it is you want and where you want it.

  3. #3
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6
    Ok, let's say I have 4 depts (1000, 1001, 1002, 1003) and instead of 85 ID's, let's say I have 3 ID's (A, B, C)

    I want to bring together in this format:
    1000 A
    1000 B
    1000 C
    1001 A
    1001 B
    1001 C
    1002 A
    1002 B
    1002 C
    1003 A
    1003 B
    1003 C

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That part is understandable. Where do you want this information? In a report, a form, a table?

  5. #5
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6
    Let's go with a table.
    I will end up using those results to pull other information.

    thanks

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are the ID's in separate records in the second table?

  7. #7
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6
    I have Depts in one table and ID's in a seperate Table

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I understand that. Please re-read my question in post #6.

  9. #9
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6
    are you asking if eash Id is in it's own cell? Then yes.

    Otherwise I am not sure what you are asking.

    Thanks

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sounds like you may be coming from a spreadsheet background. Is there a Row in the ID table for each ID as opposed to one text cell with "1-85" in it.

  11. #11
    psrs0810 is offline Novice
    Windows XP Access 2002
    Join Date
    Jan 2010
    Posts
    6
    Definitely a spreadsheet background
    Yes each row contains an ID

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You can make what is called a cartesian product by creating a query and dropping both tables in it without a Join. You will then get a separate record for every combination of the two tables which it sounds like you want. You can control the output by sorting as you desire. Post back here if you need further assistance.

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

Similar Threads

  1. Joining or Combining Two tables
    By escuro19 in forum Queries
    Replies: 2
    Last Post: 02-16-2010, 03:55 PM
  2. Replies: 4
    Last Post: 12-16-2009, 07:31 AM
  3. Combining Tables
    By king_bowzow in forum Queries
    Replies: 0
    Last Post: 08-05-2009, 10:15 AM
  4. Replies: 1
    Last Post: 06-03-2006, 05:02 PM
  5. Help combining 3 tables
    By luscioussarita in forum Queries
    Replies: 1
    Last Post: 12-14-2005, 03:22 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