strange thing when im trying to sale something from my inventory table
although the remain is enough, still says that there is not enough to sell
this is the code:
although the remain is enough, still says that there is not enough to sell
this is the code:
Code:
Set rs = CN.Execute("SELECT InvRemain FROM Inventory WHERE InvID= " & FrmInventory.LsVw.SelectedItem.Tag)
If Val(Txt(6).text) > rs!InvRemain Then
MsgBox "there is not enough items to sell to this customer", vbExclamation
Exit Sub
End If