danneedham
Programmer
Hi All
I'm scratching my head a little here! Trying to mimic a function on a financial system CODA. It relates to reporting groups.
I currently have to tables:
Table 1, Node Parent
Node ID (TEXT ID) E.G. TOTSAL1
Node Name (Text) E.G. Total Sales
Table 2, Node Child
ChildID (AutoID) E.G. 1
Element (Text) E.G. 1, 2 or N
ElemFrom (Text) E.G. (Either an element 1, 2 or another node)
ElemTo (Text) E.G. (As above)
Basically - Element 1 and 2 I dont need to do anything with.
If Node Child contains "N" as an element I need to create a query to look through the table and supliment this with the relevant Node within the hierarchy that does contain a element 1 or 2
Eg. Record 1
TOTSAL1 Total Sales
N TOTSAL2
N TOTSAL3
Record 2:
TOTSAL2 Total Own Sales
1 011001 (to) 012999
2 A0000 (to) A9999
Record 3:
TOTSAL3 Concession Sales
1 013000
2 A0000 (to) A9999
The ideal result of the query would be:
TOTSAL1
1 011001 (to) 012999
2 A0000 (to) A9999
1 013000
2 A0000 (to) A9999
Does this make sense?
Thanks in advance for your help.
Dan
I'm scratching my head a little here! Trying to mimic a function on a financial system CODA. It relates to reporting groups.
I currently have to tables:
Table 1, Node Parent
Node ID (TEXT ID) E.G. TOTSAL1
Node Name (Text) E.G. Total Sales
Table 2, Node Child
ChildID (AutoID) E.G. 1
Element (Text) E.G. 1, 2 or N
ElemFrom (Text) E.G. (Either an element 1, 2 or another node)
ElemTo (Text) E.G. (As above)
Basically - Element 1 and 2 I dont need to do anything with.
If Node Child contains "N" as an element I need to create a query to look through the table and supliment this with the relevant Node within the hierarchy that does contain a element 1 or 2
Eg. Record 1
TOTSAL1 Total Sales
N TOTSAL2
N TOTSAL3
Record 2:
TOTSAL2 Total Own Sales
1 011001 (to) 012999
2 A0000 (to) A9999
Record 3:
TOTSAL3 Concession Sales
1 013000
2 A0000 (to) A9999
The ideal result of the query would be:
TOTSAL1
1 011001 (to) 012999
2 A0000 (to) A9999
1 013000
2 A0000 (to) A9999
Does this make sense?
Thanks in advance for your help.
Dan