Hello. I'm just starting with Access 2007 and I'm having a problem with some values in a query.
So, I have 4 tables:
Project: ID, Project Name
Material: ID, Material Name
tblDelivered: ID, Project, Material Name,Quantity of Material Delivered
tblReturned: ID, Project, Material Name, Quantity of Material Returned
What I'm trying to do is to show in a query the project name, material name, quantity returned, quantity delivered and the total of those two quantities.
The problem arrives when I have two deliveries for the same material.
So, for example, I have three materials: (M1,M2,M3) and I had deliveries(10,20,30), returns(5,0,0) respectively, all with the same project. In addition, I had another delivery of M1 of 5 units.
What I want:
Proj Mat Deliv Return
P1 M1 10 5
P1 M1 5 0
P1 M2 20 0
P1 M2 10 0
What Access shows:
Proj Mat Deliv Return
P1 M1 10 5
P1 M1 5 5
P1 M2 20 0
P1 M2 10 0
Is there any way this can be accomplished? I'm out of ideas so if you could give a hint I would appreciate it.
Thanks in advance.