C
CostReport101
Sounds easy, but here it comes.
I have following tables:
tbl1
code sub code total
tbl2
sub code total
I need:
tbl3
code tbl1 sub code tbl1 total1 tbl1 total2 tbl2 but only for those
records where the sub codes matches tbl1. cells where the sub codes do not
match should stay empty.
it should look like this:
code sub code total1 total2
123 A 5,000 500
345 B 10,000
678 C 80,000 1,000
When I do a regular query combining tbl1 and 2 it puts all the numbers in one
column, but I need 2 columns. 1 showing the total1 and 2 showing total2, not
combined since I want to add a column called total3 where I subtract total2
from total1.
I hope that makes sense. PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks a bunch!
I have following tables:
tbl1
code sub code total
tbl2
sub code total
I need:
tbl3
code tbl1 sub code tbl1 total1 tbl1 total2 tbl2 but only for those
records where the sub codes matches tbl1. cells where the sub codes do not
match should stay empty.
it should look like this:
code sub code total1 total2
123 A 5,000 500
345 B 10,000
678 C 80,000 1,000
When I do a regular query combining tbl1 and 2 it puts all the numbers in one
column, but I need 2 columns. 1 showing the total1 and 2 showing total2, not
combined since I want to add a column called total3 where I subtract total2
from total1.
I hope that makes sense. PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks a bunch!