How to Not Allow Sales when Product Quantity is Equal to Zero

Hi,

I am working on an inventory.
How do I block sales if a products inventory quantity is equal to 0?

So letโ€™s say Product A with Bar Code 123 has 0 in quantity.
When I want to add a sale and I scan the Bar Code 123, I donโ€™t want it to be allowed to make a sale, since the quantity is already in 0. How can I block that?

I did the following but donโ€™t know how to make it work.

IF([Quantity].[Product] = โ€œ0โ€, โ€œvalue_1โ€, โ€œvalue_2โ€)

Virtual Column: Quantity
For table (not current table): Product
Value 1 and 2: I donโ€™t know what I should input.

Thank you

Solved Solved
0 2 209
1 ACCEPTED SOLUTION

2 REPLIES 2

Hi @Michelle_Digi
Maybe use validif


Thanks Lynn,

it says "Unable to find column โ€˜Quantityโ€™ "

Iโ€™m thinking its because it is a Virtual Column. So I wrote

([Quantity].[Product])<=[Current Stock]

but it still wonโ€™t work.

Quantity is a Virtual Column inside the Product Table.

Top Labels in this Space