1.

How To Check For A Particular Record Whether It Is Present Or Not In Dataset

Answer»

if the record is not present i WANT to DISPLAY a message as no records what is the CODE for checking
if you are using "DATAREADER" then
if DataReaderName.HasRows then
statements
else
statements
end if
if you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
end if

if the record is not present i want to display a message as no records what is the code for checking
if you are using "DataReader" then
if DataReaderName.HasRows then
statements
else
statements
end if
if you are using "DataSet" then
if DataSetName.TABLES.("tablename").ROWS.COUNT=0 THEN
statements.
end if



Discussion

No Comment Found