L
Leo
I'm creating a database to track inventory movements for reserve calculation
purposes. I start out with two tables, Inv Mov and Inv Bal.
From Inv Mov, I create a Query "Initial Movements" as a filter. When I run
this query, all looks good.
I create a new query, "Transaction Summary" that joins fields "P/N" from
table "Inv Bal" and Query "Initial Movements".
When I run this second query, every record is duplicated. I can't figure
out why, and I'm trying to eliminate this. Here's the SQL:
SELECT [Inv Bal Eco].[P/N], [Inv Bal Eco].[Total Qty], [Initial Movements
into Stock - Eco].[Tran Type], [Initial Movements into Stock - Eco].[Tran
Qty], [Initial Movements into Stock - Eco].[Tran Date], [Initial Movements
into Stock - Eco].[Fr Inv], [Initial Movements into Stock - Eco].[To Inv]
FROM [Initial Movements into Stock - Eco] INNER JOIN [Inv Bal Eco] ON
[Initial Movements into Stock - Eco].[P/N] = [Inv Bal Eco].[P/N]
WHERE ((([Inv Bal Eco].[Total Qty])>=0));
I have tried creating a new query from scratch just to try to eliminate
possible causes. Simply creating a select query from "Initial Movements" and
"Inv Bal" causes every record to be duplicate, regardless of what fields I
display or what criteria I enter.
Please Help!
Thanks in advance!!
purposes. I start out with two tables, Inv Mov and Inv Bal.
From Inv Mov, I create a Query "Initial Movements" as a filter. When I run
this query, all looks good.
I create a new query, "Transaction Summary" that joins fields "P/N" from
table "Inv Bal" and Query "Initial Movements".
When I run this second query, every record is duplicated. I can't figure
out why, and I'm trying to eliminate this. Here's the SQL:
SELECT [Inv Bal Eco].[P/N], [Inv Bal Eco].[Total Qty], [Initial Movements
into Stock - Eco].[Tran Type], [Initial Movements into Stock - Eco].[Tran
Qty], [Initial Movements into Stock - Eco].[Tran Date], [Initial Movements
into Stock - Eco].[Fr Inv], [Initial Movements into Stock - Eco].[To Inv]
FROM [Initial Movements into Stock - Eco] INNER JOIN [Inv Bal Eco] ON
[Initial Movements into Stock - Eco].[P/N] = [Inv Bal Eco].[P/N]
WHERE ((([Inv Bal Eco].[Total Qty])>=0));
I have tried creating a new query from scratch just to try to eliminate
possible causes. Simply creating a select query from "Initial Movements" and
"Inv Bal" causes every record to be duplicate, regardless of what fields I
display or what criteria I enter.
Please Help!
Thanks in advance!!