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
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