'ds is the dataset. if ds.tables.count = 0 then 'No result set is found End If
'ds is the dataset If ds.tables(0).rows.count = 0 then 'no row is returned End If