I have a function that substracts the quantity in the stock in the field called stock in the table Products.It works fine,however i do not want to substract if the stock is Null, and give a message ”
there are no more goods available”.How can i confine the function only if the stock is not Null ?
The function is the following
strSQLBulems = “UPDATE Products SET Stock = Stock – ” & Me.cartons & ” WHERE ProductID=” & Me.Productid