Hi, I did not ignore those 3 answers, I can't find the messages from my
previous post. Using Outlook Express 6 to read this newsgroup, the older
posts were removed, hence can't reply.
query as below:
SELECT [PUB_po-rcpt].[rcvd-date], [Year_Month_data_M].[Month] & "/" &
[Year_Month_data_M].[Year] AS CM, [PUB_po-rcpt].[vend-num],
PUB_vendaddr.country, PUB_vendaddr.name, [PUB_itemloc].[qty-on-hand]*1 AS
Qty, [PUB_itemloc].[qty-on-hand]*[PUB_item].[unit-cost] AS Amt,
[PUB_itemloc].[qty-on-hand]*[PUB_item].[unit-cost]*0.17 AS Overhd
FROM Year_Month_data_M, (([PUB_po-rcpt] INNER JOIN (PUB_item INNER JOIN
PUB_poitem ON PUB_item.item = PUB_poitem.item) ON ([PUB_po-rcpt].[po-line] =
PUB_poitem.[po-line]) AND ([PUB_po-rcpt].[po-num] = PUB_poitem.[po-num]))
INNER JOIN PUB_itemloc ON PUB_item.item = PUB_itemloc.item) INNER JOIN
PUB_vendaddr ON [PUB_po-rcpt].[vend-num] = PUB_vendaddr.[vend-num]
GROUP BY [PUB_po-rcpt].[rcvd-date], [Year_Month_data_M].[Month] & "/" &
[Year_Month_data_M].[Year], [PUB_po-rcpt].[vend-num], PUB_vendaddr.country,
PUB_vendaddr.name, [PUB_itemloc].[qty-on-hand]*1,
[PUB_itemloc].[qty-on-hand]*[PUB_item].[unit-cost],
[PUB_itemloc].[qty-on-hand]*[PUB_item].[unit-cost]*0.17,
PUB_item.description, PUB_item.[product-code], Int([PUB_item].[unit-cost]),
PUB_poitem.item
HAVING ((([PUB_po-rcpt].[rcvd-date])>=#5/1/2004# And
([PUB_po-rcpt].[rcvd-date])<=#5/31/2004#) AND ((PUB_item.[product-code]) Not
Like "D*"))
ORDER BY [PUB_po-rcpt].[vend-num], PUB_poitem.item;
Objective: to find those stock in inventory which are purchased, their
quantities at the end of the month and the correponding vendors.
PUB_po-rcpts: table which lists the receiving of items from vendors.
PUB_item-loc: gives the on-hand quantity of the inventory as of now.
PUB_vend-num: to link the vendor number to the vendor name.
Hope this is clear....
Elsie