You can modify that code to get you the row() number and item() number in your dataset.

I don't know why you're getting an error for Table(0), though. Have you given the table a name?