W
Will G
Hello,
iT'S THERE ANYTHING WRONG WITH THIS QUERY two queries, i am trying to get
one from the otherone. or it's there a best way to do this.
query one: name: qrAllItemsCountFX-Fa
SELECT qrAllItems.Vendor, qrAllItems.OrderNo, qrAllItems.OrderQty,
qrAllItems.itemName, Count(qrAllItems.itemName) AS [Count]
FROM qrAllItems
GROUP BY qrAllItems.Vendor, qrAllItems.OrderNo, qrAllItems.OrderQty,
qrAllItems.itemName
HAVING (((qrAllItems.Vendor)="Foamex-Fab"));
query two: name:qrAllItemsCountFX-Fab
SELECT [qrAllItemsCountFX-Fa].Vendor, [qrAllItemsCountFX-Fa].OrderNo,
[qrAllItemsCountFX-Fa].itemName, [Count]*[OrderQty] AS total
FROM [qrAllItemsCountFX-Fa]
GROUP BY [qrAllItemsCountFX-Fa].Vendor, [qrAllItemsCountFX-Fa].OrderNo,
[qrAllItemsCountFX-Fa].itemName, [Count]*[OrderQty];
what i am trying to get on a report is:
Vendor, ItemName, Total
FF SP100 45
THERE SHOULD NOT BE REPEATING itemName, but that's where i get lost...
can anyone help please.
iT'S THERE ANYTHING WRONG WITH THIS QUERY two queries, i am trying to get
one from the otherone. or it's there a best way to do this.
query one: name: qrAllItemsCountFX-Fa
SELECT qrAllItems.Vendor, qrAllItems.OrderNo, qrAllItems.OrderQty,
qrAllItems.itemName, Count(qrAllItems.itemName) AS [Count]
FROM qrAllItems
GROUP BY qrAllItems.Vendor, qrAllItems.OrderNo, qrAllItems.OrderQty,
qrAllItems.itemName
HAVING (((qrAllItems.Vendor)="Foamex-Fab"));
query two: name:qrAllItemsCountFX-Fab
SELECT [qrAllItemsCountFX-Fa].Vendor, [qrAllItemsCountFX-Fa].OrderNo,
[qrAllItemsCountFX-Fa].itemName, [Count]*[OrderQty] AS total
FROM [qrAllItemsCountFX-Fa]
GROUP BY [qrAllItemsCountFX-Fa].Vendor, [qrAllItemsCountFX-Fa].OrderNo,
[qrAllItemsCountFX-Fa].itemName, [Count]*[OrderQty];
what i am trying to get on a report is:
Vendor, ItemName, Total
FF SP100 45
THERE SHOULD NOT BE REPEATING itemName, but that's where i get lost...
can anyone help please.