Zero value in a table
In the table products i have a field called stock.This field contains the number of the cartons
we have in stock. I have a function with which i increase the quantity in the field stock with the
number of the cartons i add to this stock.
The function works excellent provided the field stock is not 0.My problem is that when i add a new
product,the function does not increase the quantity in the field stock.I have tried to make the Default value of the product as 0 or 1, but of no use.Probably the fault
lies with my function.Is it possible at all to make my function working starting from a zero quantity?
my function is the following :
strSQLAral = “UPDATE Products SET Stock = Stock + ” & Me.cartons & ” WHERE ProductID=” &
Me.Productid
I will be grateful for any advice