Hi,
I have a problem!
I am trying to create a simple database that coworkes can take products from stock.
I need to check at x value is not bigger than stock value and if is I would like to show a comments : value is to bigg.
I have code like this :
Private Sub cmdlagre_Click()
If stock_level < x.value Then
MsgBox "x is to big", vbInformation, "stock"
end if
en sub
sometimes it works, but if we have a value in stock of 22 and I want to subtract 20, access says that the value of 20 is too big ...
What am I doing wrong?
Help - pleas
I have a problem!
I am trying to create a simple database that coworkes can take products from stock.
I need to check at x value is not bigger than stock value and if is I would like to show a comments : value is to bigg.
I have code like this :
Private Sub cmdlagre_Click()
If stock_level < x.value Then
MsgBox "x is to big", vbInformation, "stock"
end if
en sub
sometimes it works, but if we have a value in stock of 22 and I want to subtract 20, access says that the value of 20 is too big ...
What am I doing wrong?
Help - pleas