Hey all! Just a bit ago I figured out how to "tier" Records in a Table so that the Table knows that certain Records are "children" of another Record. Basically, you just reference the ID of the immediate parent Record in the same table.
Code:
RecordID|ParentID|Description
1|0|Parent Record
2|1|Child Record 1
3|1|Child Record 2
4|2|Sub-child Record 1.1
5|2|Sub-child Record 1.2
6|3|Sub-child Record 2.1
7|3|Sub-child Record 2.2
8|3|Sub-child Record 2.3
9|7|Sub-sub-child Record 2.2.1
So now I have a new problem: displaying that data in a Report!
Basically, I want to "tab in" child records, like so:
- Parent Record
- Child Record 1
- Sub-child Record 1.1
- Sub-child Record 1.2
- Child Record 2
- Sub-child Record 2.1
- Sub-child Record 2.2
- Sub-child Record 2.3
Is there a way to do this when I don't know how many levels deep the Records go?