im trying to see if the InvSold is much then the InvQuantity and display a msgbox that the user cant purchase
beacuse there is not enough items in the inventory.
i tried this code but something is missing
beacuse there is not enough items in the inventory.
i tried this code but something is missing
Code:
Set rs = CN.Execute("SELECT InvSold ,InvQuantity FROM Inventory WHERE InvID= " & FrmInventory.LsVw.SelectedItem.Tag)
If rs!Invsold >= rs!InvQuantity Then
MsgBox "there is not enough items to purchase for the customer"
End If