Results 1 to 5 of 5
  1. #1
    bretdunalp is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    4

    Question query from a query or list with more than one result in colum


    First, I'm a total novice, I can usually find a workaround but it appears I'm stumped.

    I have a query that sorts for an ID the result is a list of several other ID's Example Header- family ID Header- Subscriptions When I query for the family ID several subscriptions will come up. I need to take those subscription ID's and find those in one table/Query.

    I tried in the criteria [Query]![AuthIDsHoldQuery]![Subscriptions] I get a pop up asking me to put in only one of the subscriptions but what I need is multiple.

    Is there a formulaic solution (FYI I've even tried IN ([query]![Header])

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    How are you using this query? In a form/subform, or by itself?

    Is the list of subscription ID's in one multivalue table field?

    Can you give a bit more detail about your table structure?

  3. #3
    bretdunalp is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    4
    I will use it later in a form but right now just have the query bring up the information basically in a table there are multiple transactions for several subscriptions but only a single account has theses subscriptions. IE Joe Tompson is the account holder but he has several subscriptions 1234, 1235, 1137 etc in a large table are all the charges (with multiple accounts) that only list subscriptions associated with a change to the account over months. I can pull up all the subscription ID's associated with Joe then use that to filter the larger transaction table. my challenge is I'm getting in the final query sometimes multiple repeated transactions so I was wondering if there was a criteria way of doing this.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    ...I can pull up all the subscription ID's associated with Joe...
    How do you do that? Where are these ID's stored - in which table and field? If they are in the account holder table, that is not the correct place for them.

    What you need to have is the Account Holder ID as a Foreign Key (FK) in the Subscription table - that is the normal design for a one-to-many relationship, and it makes queries such as yours much easier.

  5. #5
    bretdunalp is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2016
    Posts
    4
    Ok after pulling my hair out it appears if I went into properties in the Queries and clicked unique values it solved it thanks for the Help.

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

Similar Threads

  1. Replies: 3
    Last Post: 09-18-2014, 11:33 AM
  2. Query based on result of another query
    By BRZ-Ryan in forum Queries
    Replies: 66
    Last Post: 12-29-2013, 06:46 PM
  3. Replies: 7
    Last Post: 05-31-2012, 02:25 PM
  4. Replies: 8
    Last Post: 05-16-2012, 09:30 AM
  5. combo box query based on different query result?
    By mejia.j88 in forum Queries
    Replies: 10
    Last Post: 02-15-2012, 02:00 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