SQL3 = "SELECT * FROM PO_ITEM_Details WHERE Folder_ID = '" & FolderID & "' and Quantity_Received > 0" rstInv.Open SQL3, objcn WHILE NOT rstInv.EOF and x < 10 x = x + 1 objSht.Cells((47 + x),2).Value = rstINV("Item_Number") objSht.Cells((47 + x),3).Value = rstINV("Description") objSht.Cells((47 + x),4).Value = rstINV("Quantity_Received") objSht.Cells((47 + x),5).Value = rstINV("UOM") objSht.Cells((47 + x),6).Value = rstINV("Unit_Price") objSht.Cells((47 + x),7).Value = rstINV("Currency1") objSht.Cells((47 + x),8).Value = rstINV("EXT_Price") objSht.Cells((47 + x),9).Value = rstINV("New_EXT_Price") rstInv.MoveNext WEND rstInv.Close
rstINV("Item_Status") = "Extracted" rstINV.Update rstInv.MoveNext
rstInv.CursorLocation = 3 rstInv.Open SQL3, objcn, 3, 3
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)