Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.41K
Ranked #4K
~100 People Reached
Favorite Forums
Member Avatar for hg_fs2002

[CODE] sqlCmd = new SqlCommand(); sqlCmd.Connection = sqlCon; sqlCmd.CommandText = "update trainn set Adultno=Adultno-1 where ID=@pram1 and adult=@pram2 and Adultno>0"; sqlCmd.Parameters.AddWithValue("@pram1", textBox3.Text); sqlCmd.ExecuteNonQuery(); sqlCon.Close();[/CODE] The code is working properly when there is an update,but when it comes to more than one I don't know what to do? The following code …

Member Avatar for hg_fs2002
0
100