how to disable buttn

QuestionsCategory: VB.Nethow to disable buttn
Jestoni Tumaob Staff asked 1 week ago

how to disable the select button if the product or items is not available

1 Answers
itsourcecode Staff answered 1 week ago

You can identify if the product is no longer available if the qty of that product is equal to zero. If it is equal to zero, you can make a query something like this
SELECT COUNT(*) AS “NO OF PRODUCT AVAILABLE” FROM TBLPRODUCTS WHERE PRODUCTID = 11111;
NEXT, you need to put a condition to check if the available product is greater than zero then disable the button.