Using the found Record

Flovit

Member
Joined
Apr 3, 2004
Messages
18
I want to find a record and the increase the frequency field by one :
Freq = Freq + 1 ;
Im a little new to ado.net

DataRow foundRow = dsConts.Tables["Members"].Rows.Find(stAddress) ;

if (foundRow != null)
{
int num ;

num =dsConts.Members.Rows[foundRow["Frequency"]];
//num = dsConts.Tables["ipConts"].Rows[foundRow["Frequency"]] ;
dsConts.Tables["Members"].Rows[(int) foundRow.RowState]["Frequency"] =
num + 1 ;

}

Thanks for any help
 
Back
Top