I read most of the threads regarding comparing 2 tables but I cannot find any solution to my situation. I have 2 tables for an inventory application tblACount and tblBCount. Both tables have the same fields.
fldID – Record ID (autonumber & primary key)
fldUPC – Part number
fldBatch – batch number
fldLocation – Location where the product was counted
fldQty – Quantity counted
fldTeam – The team that counted the stock
fldSheet – the sheet number the team used to count
We counted the stock twice an A and a B count by different teams per section. My oroblem lies when trying to compare the counts from A to the counts from B.
Example:
Product 20944
A Count B Count
Location – Qty Location – Qty
S5C1 – 27 S5C1 – 27
1732B – 80 1732B – 80
1738C – 1008
I would like to get a query that would return the information like it is above. What I get when I do a query with both tables is
A Count B Count
Location – Qty Location – Qty
S5C1 – 27 S5C1 – 27
S5C1 – 27 1732B - 80
1732B – 80 S5C1 - 27
1732B – 80 1732B – 80
1738C – 1008 S5C1 – 27
1738C – 1008 1732B - 80
I’m afraid that my original design of the tables might be the cause but I’m not sure. Is there any way that I can get all of the location for an item from A and all of the location from B without duplicates.
Thanks
RL
fldID – Record ID (autonumber & primary key)
fldUPC – Part number
fldBatch – batch number
fldLocation – Location where the product was counted
fldQty – Quantity counted
fldTeam – The team that counted the stock
fldSheet – the sheet number the team used to count
We counted the stock twice an A and a B count by different teams per section. My oroblem lies when trying to compare the counts from A to the counts from B.
Example:
Product 20944
A Count B Count
Location – Qty Location – Qty
S5C1 – 27 S5C1 – 27
1732B – 80 1732B – 80
1738C – 1008
I would like to get a query that would return the information like it is above. What I get when I do a query with both tables is
A Count B Count
Location – Qty Location – Qty
S5C1 – 27 S5C1 – 27
S5C1 – 27 1732B - 80
1732B – 80 S5C1 - 27
1732B – 80 1732B – 80
1738C – 1008 S5C1 – 27
1738C – 1008 1732B - 80
I’m afraid that my original design of the tables might be the cause but I’m not sure. Is there any way that I can get all of the location for an item from A and all of the location from B without duplicates.
Thanks
RL