Solved

Access Parent Child Table

Posted on 2014-02-17
5
1,364 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
5 Comments
 
LVL 24

Expert Comment

by:chaau
Comment Utility
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:
Technodweeb earned 150 total points
Comment Utility
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
Comment Utility
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 34

Assisted Solution

by:PatHartman
PatHartman earned 50 total points
Comment Utility
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
Comment Utility
thanks no I understand it well. Sorry for late response
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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.
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now