[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Best way to create a 3 deep master/child Access form

Posted on 2016-10-24
4
Medium Priority
?
68 Views
Last Modified: 2016-10-24
How do I create a 3 deep master/child form?

Background:
I haven't used Access for years, I am using Windows 10 and Access 2016.  I have a new small business making paper flower bouquets.

What I want to achieve:
Create a form that displays Product(bouquets) info, listing the product items(flowers) and paper items(paper used in creating the flowers).  I want to be able to add Flowers (from tblFlowers) to the Product(The flower info can be read only) and add Paper items to the flowers, need to be able to edit and save that.  

1 Product to many Flowers
1 Flower to many Paper Items

My Question:
What do I have to do to create this 3 deep master/child form?  (I will look into the "how to do it" if someone can get me started by guiding me with what I need to do.)  There seem to be many ways to achieve this and I don't know which is most suitable to my needs and (rusty!) knowledge.

Hope it makes sense,
Thank you :)
0
Comment
Question by:Marie Floury
  • 2
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Eric Sherman earned 2000 total points
ID: 41857380
If you are using Access 2001 or later ... you should be able to create Nested Subforms or a subform within a subform.

Create subFrmFlower with the FlowerID as the Parent field linked to the FlowerID field in the Paper Items table.  Next create your main form frmProduct with the ProductID as the Parent field linked to the ProductID on the subform subFrmFlower.  Use a Combo Box to navigate the main form and move the record pointer accordingly.

ET
0
 

Author Comment

by:Marie Floury
ID: 41857683
Hi Eric,

Thank you for your help.  I have followed the steps and it is working :) The only problem I have is that I need to see a list of all the flowers that are part of a product at once (don't want to click on "next record" buttons to see them one by one).  Is there a way to show the flowers in a listbox and when I select one it shows the paper items?
0
 

Author Comment

by:Marie Floury
ID: 41857714
Hello again!  I have worked out how to do it... I created a query to populate the list box and linked that to the subform.

Thank you for your help :)
0
 
LVL 19

Expert Comment

by:Eric Sherman
ID: 41857760
Ok, thanks for the points ...  Also, you could use Data Sheet views for your Sub Forms.

ET
0

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question