Hello Aiman, You can use the SqlFree API function to close and de-allocate your cursor. Also you can go through the below link for the sample code. community.dynamics.com/.../145856.aspx Sample Code: Call Sqlfree(xxxxx) Strqry = "Select * From Inventory(NoLock) Where InvtID= " & SParm(Trim(InventoryId)) serr1 = SqlFetch1(Csr_Temp, Strqry, bInventory) Call SqlFree(Csr_Temp) Hope this explains
↧