View Single Post
  #6  
Old November 18th, 2009, 04:21 PM posted to microsoft.public.access.tablesdbdesign
BruceM via AccessMonster.com
external usenet poster
 
Posts: 448
Default Hiding zero values in report

It doesn't look like anything in my copy of Northwind (Access 2003).

I don't see where you specified a criteria. You need something like this at
the end:

WHERE ([Quantity Purchased]-[Quantity Sold]) 0

Was this query showing the correct data (other than showing 0 where you
didn't want it)?


Coco111 wrote:
Sorry I dont get it....in SQL see as below:-

SELECT Products.ID AS [Product ID], Products.[Product Name], Products.
[Product Code], Nz([Quantity Purchased],0) AS [Qty Purchased], Nz([Quantity
Sold],0) AS [Qty Sold], Nz([Quantity On Hold],0) AS [Qty On Hold], [Qty
Purchased]-[Qty Sold] AS [Qty On Hand], [Qty Purchased]-[Qty Sold]-[Qty On
Hold] AS [Qty Available], Nz([Quantity On Order],0) AS [Qty On Order], Nz(
[Quantity On Back Order],0) AS [Qty On Back Order], Products.[Reorder Level],
Products.[Target Level], [Target Level]-[Current Level] AS [Qty Below Target
Level], [Qty Available]+[Qty On Order]-[Qty On Back Order] AS [Current Level],
IIf([Qty Below Target Level]0,IIf([Qty Below Target Level][Minimum ReOrder
Quantity],[Minimum Reorder Quantity],[Qty Below Target Level]),0) AS [Qty To
Reorder]
FROM ((((Products LEFT JOIN [Inventory Sold] ON Products.ID = [Inventory Sold]
.[Product ID]) LEFT JOIN [Inventory Purchased] ON Products.ID = [Inventory
Purchased].[Product ID]) LEFT JOIN [Inventory On Hold] ON Products.ID =
[Inventory On Hold].[Product ID]) LEFT JOIN [Inventory On Order] ON Products.
ID = [Inventory On Order].[Product ID]) LEFT JOIN [Products On Back Order] ON
Products.ID = [Products On Back Order].[Product ID];

How? Sorry, if im just beginner...

Please post the SQL as described in my previous posting.

[quoted text clipped - 3 lines]
Message show Qty Purchase? and also Qty Sold? How? Please help?
Thks in advance...


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...esign/200911/1