Solved

Access Parent Child Table

Posted on 2014-02-17
5
1,445 Views
Last Modified: 2014-03-21
Hi

I am new to development and wondering how a table would be created with a tree.  I have seen an example but not sure what properties should be set..  Ie Expand (+) a child table in a way of a drilldown.  I am looking for a basic example

Eg Table !
Name,Address CarModel

Eg Table 2 (Drill down from above table)
CarModel, Engine CC, Gears,

Thanks
0
Comment
Question by:yasanthax
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 25

Expert Comment

by:chaau
ID: 39866450
All you need to do is to create relationship between these tables. Open Database Tools -> Relationships. Select your Table1 and Table2. Then use your mouse to drag CarModel Column from one table to another. This will bring a dialog (similar to one below) where you can specify additional options. FYI, relationship in Access is a feature commonly known as Foreign KeyTable Relationship
0
 
LVL 11

Accepted Solution

by:
Gregory Miller earned 150 total points
ID: 39866452
The trick to make this work is to create a lookup from table1 to table2. Then in Table3 you will get the drill down items you seek. See the attached example db file.
Access-Parent-Child-Table.accdb
0
 
LVL 30

Expert Comment

by:hnasr
ID: 39866515
In general:
table1 (idt1, name1, other fields)
table2 (idt1, idt2, name2, other fields)
table3 (idt2, idt3, name3, other fields)
...
If you fill the tables with test data, and open table2, you can drill down to table3.
0
 
LVL 37

Assisted Solution

by:PatHartman
PatHartman earned 50 total points
ID: 39867288
The trick to make this work is to create a lookup from table1 to table2.
Lookups at the table level are a crutch for those who don't know how to create a query.  They will cause nothing but trouble once you learn to use queries and code.  Professional developers advise strongly against using them.  If you want a combo, put it on a form.  If you want to display lookup data in a query, use a query that joins the main table to the lookup table.
0
 

Author Closing Comment

by:yasanthax
ID: 39944782
thanks no I understand it well. Sorry for late response
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

759 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