I'd grab the item code and line warehouse then open a new object to access IM_ItemWarehouse, and do a lookup with a concatenated key (then query QoH, OnSO... to calculate Available):
sItemCode & String(30-Len(sItemCode),Chr(0)) & sWarehouseCode
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
------------------------------