Hi codell3 , You do not need to set the ItemType variable, as that will be set when you set a valid Item in the ItemCode field. This bit of code should be all that's necessary to set the item. As long as ItemNo has the "/" preceding it and that item exists and is allowed to be used in Purchase Order. For example ItemNo = "/CABLES" rv = o.oLines.nSetValue("ItemCode$", CStr(r.Fields("ItemNo").Value & ""))
↧