Does this function return the result of the last db operation or the last db operation that failed? The dictionary entry seems to suggest the latter... Pete Haworth