I am trying to check qty on an item before logging a work order. The following line is still not quite right.
It is like there is no inventory for that item. (Table shows 9 in stock, Me.tbxSKUQty = 1). I have double checked all of my spelling and names.
Code:
If DLookup("SaleableQty", "Inventory", "Inventory.SKU = '" & Me.cbxSKU & "'") >= Me.tbxSKUQty Then
.
.
Else
MsgBox "There is insufficient item inventory to fulfill this order. Please notify administrator.", vbOKOnly
End If
It is like there is no inventory for that item. (Table shows 9 in stock, Me.tbxSKUQty = 1). I have double checked all of my spelling and names.