Hi , My code is as below
conDB.Execute strSQL, recordsAffected
Sheet1.Cells(intStart, 5) = IIf(recordsAffected > 0, "Success", "Failure")
Intread of printing failure i want to print the error description. I tried
Sheet1.Cells(intStart, 5) = IIf(recordsAffected > 0, "Success", Err.Des)
but it doesn't work. Any ideas?