Hello,
I have a dataset that I search using the
dataset.tables("table").Select("WHERE clause")
method to query. I then use a datarepeater to display the results.
Is there a way to programatically tell if no results are returned?
I'm aware of the Dataset.tables.Rows.count, but can this be done after the select method?
Thanks in advance for your help
I have a dataset that I search using the
dataset.tables("table").Select("WHERE clause")
method to query. I then use a datarepeater to display the results.
Is there a way to programatically tell if no results are returned?
I'm aware of the Dataset.tables.Rows.count, but can this be done after the select method?
VB.NET:
Dim intRowCount As Integer
FrmReport.DataRepeater1.DataSource() = DataSet.Tables("tblWO").Select(strCriteria)
intRowCount = FrmReport.DataRepeater1.DataSource.tables("tblWO").rows.count
if introwcount = 0 then
msgbox("no rows")
end if
Thanks in advance for your help