Actually, the next line of code does check if iRecCount > 0, so we're both thinking the same thing (i just didn't post that line of code).

Yeah, i know the DataSet contains tables, not rows. I guess the returned DataSet doesn't have a table, which is probably something i didn't consider since i was concentrating on the rows, not the table.

I think the best idea would be to create a fake table in the Exception, and add it to the DataSet.