S
sw
I have fields from 2 tables that I am extracting into a
query, from Table 1 - Account No. (primary key), Account
Name and then some address fields.
In Table 2 I also have the Account No and therefore am
extracting an Invoice Number and Value.
When I run the query I see correct data however if the
Account No appears more than once in table 2 (as it may
well be if there are different invoice values) then I see
this on individual rows e.g.
Acc No. Account Name Invoice No Value
100 A 1 25
100 A 2 34
101 B 1 14
101 B 2 23
Is there any way of bringing the data in so that it finds
all the relating records for that Account No and groups
the individual invoice no's and amounts on the same row?
e.g.
Acc No Account Name Invoice No Value Invoice No Value
100 A 1 25 2 34
101 B 1 14 2 23
any help or advice would be appreciated.
query, from Table 1 - Account No. (primary key), Account
Name and then some address fields.
In Table 2 I also have the Account No and therefore am
extracting an Invoice Number and Value.
When I run the query I see correct data however if the
Account No appears more than once in table 2 (as it may
well be if there are different invoice values) then I see
this on individual rows e.g.
Acc No. Account Name Invoice No Value
100 A 1 25
100 A 2 34
101 B 1 14
101 B 2 23
Is there any way of bringing the data in so that it finds
all the relating records for that Account No and groups
the individual invoice no's and amounts on the same row?
e.g.
Acc No Account Name Invoice No Value Invoice No Value
100 A 1 25 2 34
101 B 1 14 2 23
any help or advice would be appreciated.