Hi, Very new to access but thought I was trying to create a simple query!
I have 2 tables
<tbody>
</tbody>
<tbody>
</tbody>
I am trying to show the difference between the Total of system1 less Total System 2, grouped by store.
Query should be like the below
<tbody>
</tbody>
When I try to write a query I get duplicated entries see below query
SELECT Tble1.Store, Tble1.Vale, Tble2.Store, Tble2.Val, [Tble1]![Vale]-[Tble2]![Val] AS Expr1
FROM Tble1 INNER JOIN Tble2 ON Tble1.Store = Tble2.Store;
Thanks in advance for any help you can give me
I have 2 tables
<tbody> </tbody> | |||||||||||||||||||||||||||||||||||
<tbody>
</tbody>
Tble2 | |||
ID | Store | Type | Val |
1 | 1 | System2 | 45 |
2 | 1 | System2 | 35 |
3 | 2 | System2 | 50 |
4 | 3 | System2 | 60 |
<tbody>
</tbody>
I am trying to show the difference between the Total of system1 less Total System 2, grouped by store.
Query should be like the below
Tble1 | Tble2 | |||||
Store | TYpe | Vale | Store | Type | Val | CalculatedField |
1 | System1 | 300 | 1 | System2 | 80 | -220 |
2 | System1 | 50 | 2 | System2 | 50 | 0 |
3 | System1 | 50 | 3 | System2 | 60 | 10 |
4 | System1 | 100 | -100 |
<tbody>
</tbody>
When I try to write a query I get duplicated entries see below query
SELECT Tble1.Store, Tble1.Vale, Tble2.Store, Tble2.Val, [Tble1]![Vale]-[Tble2]![Val] AS Expr1
FROM Tble1 INNER JOIN Tble2 ON Tble1.Store = Tble2.Store;
Thanks in advance for any help you can give me