Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21906

check if a item buy is bigger then the item in the inventory table dosnt work

$
0
0
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:
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


Viewing all articles
Browse latest Browse all 21906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>