Results 1 to 9 of 9
  1. #1
    mwc0914 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    7

    Subform with multiple parent forms


    I have a series of forms that each execute a parameter driven query (each form perorms a different type of query on the same table). I want a common "output form" for each query result. I suspect the output form would be a linked subform. How do I link the subform to multiple parent query forms?
    Or perhaps is there a better way to design this?

  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
    Perhaps if you described to readers WHAT you are trying to do in business terms in plain English you may receive some responses with options. Maybe a sample with your data would help.

  3. #3
    mwc0914 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    7
    Ok, let's try this...

    A. I have a form (Form A) where the user enters an airbill number. They click a button on the form that executes the query and returns all shipments with the entered the airbill number, country, and ship date. The results are displayed on a subform (Subform C) that is linked to the original form.
    B. I also have another form (Form B) where the user enters the country and a button the user clicks to execute a query that returns all shipments with the same country (These are read from the same table as the earlier query). The query results are displayed on a subform (Subform C) that is linked to the original form.

    So, if either A or B are executed, the results will display on Subform C, overlaying the previous query's results.
    So, I have two parent forms, one for each query, and a single output form.

    How is this set up?

    How do I set up

  4. #4
    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
    I think you are telling us HOW you do something (or plan to do something). Can you tell us in business terms WHAT you are trying to do?
    (Forget the forms and buttons and queries)

  5. #5
    mwc0914 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    7
    There are two separate searches based on user entered criteria - one that looks up all the shipments with the same tracking number and a different one that looks up all the shipments for the same country.
    The results for either search will display other than where the search criteria was entered for each search.
    The location for the displayed results will be able to display either search's results.

  6. #6
    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
    Ok I think I follow.

    You want to perform 1 of 2 separate searches
    Search 1 --Find shipment records based on TrackingNumber
    Search 2 --Find shipment records based on Country

    Display the found records in a standard format.

    Are TrackingNumbers numeric, or do they contain alphabetics?
    Can you post a jpg of your tables and relationships to help readers understand your tables/requirements?
    You could do this on one form, but you mentioned 3 forms--any particular requirement?

  7. #7
    mwc0914 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    7
    Tracking number is numeric only. I want 3 forms because although I only listed 2 queries, there will ultimately be about 6 different queries on the same data, and it would be too cumbersome for all the queries on one form, so I would rather have 1 query per form, then a common output form for all quereies. All data is from single table.
    I will ultimately add more fields and more queries.
    Click image for larger version. 

Name:	table.jpg 
Views:	8 
Size:	41.3 KB 
ID:	11536

  8. #8
    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
    Since you are working with only 1 table, and you have about 5 -6 queries and only 1 output,

    you could consider an Option Group to identify which query to run, and put the results into a single output
    form of listbox or??? Something like attached jpg
    Attached Thumbnails Attached Thumbnails OneForm5Queries_Ideas.jpg  

  9. #9
    mwc0914 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    7
    Some of the future queries will have multiple search terms, so I thought it better to handle each search separately on its own form.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2013, 12:56 AM
  2. Problem using Parent/Child Form/Subform
    By EvanRosenlieb in forum Forms
    Replies: 4
    Last Post: 06-27-2011, 05:25 PM
  3. Replies: 4
    Last Post: 05-17-2011, 06:56 AM
  4. Parent/Child subform
    By Jerry8989 in forum Forms
    Replies: 1
    Last Post: 09-18-2009, 07:27 AM
  5. SubForm to Parent
    By henryclay in forum Forms
    Replies: 2
    Last Post: 11-15-2006, 09:44 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