Results 1 to 4 of 4
  1. #1
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291

    How do I set up a 1 to many query

    I have a name field and each name field has x number of associated field b.



    My ideas so far are to take the string b and add it to a variable for each b in x and then it would display a string of all the b's and its assocaited name. I am not sure the syntax to do this.

    So if I could get help on the syntax or if I should be headed in another direction, thank you.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jgelpi16 is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Let me see if I understand. In two Tables and you have two fields: Table1.Name and Table2.B. Table1.Name is unique and Table2.B has many. Table1.Name could be associated with several in Table2.B. You want a query to take every instance where Table1.Name is associated with Table2.B and Append it to Table3.Combined.

  4. #4
    cowboy is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    291
    Quote Originally Posted by jgelpi16 View Post
    Let me see if I understand. In two Tables and you have two fields: Table1.Name and Table2.B. Table1.Name is unique and Table2.B has many. Table1.Name could be associated with several in Table2.B. You want a query to take every instance where Table1.Name is associated with Table2.B and Append it to Table3.Combined.
    Everything correct except the last sentence. What I want is to have a query that pulls certain information for each table1.Name and one of the things I want is a list of all the table2.B associated.

    I think pbaldy's link is what I am looking for but I just got in today I need an hour to implement it and try it out.

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

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