Click here to Skip to main content
15,906,333 members

Comments by Gerhard_Louis (Top 23 by date)

Gerhard_Louis 6-Jun-15 15:46pm View    
from which site did you copy and paste the code
Gerhard_Louis 23-May-15 14:57pm View    
Sorry my mistake.I was going to be defensive about your comment but i got to explain what happened.For some strange reason my question kept being added to the discussion section
Gerhard_Louis 17-May-15 1:01am View    
edit this.da.Update(ds, "tarih");
Gerhard_Louis 17-May-15 0:56am View    
Your update should be something like this

OleDbCommand guncelle = new OleDbCommand("UPDATE tarih SET 1sorupuan1 = @3, 1sorupuan2 =@4 , 1sorupuan3 =@5, 1sorupuan4 = @6, 1sorupuan5 = @7, 1sorupuan6 = @8, 1sorupuan7 = @9, 1sorupuan8 = @10, 1sorupuan9 = @11, 1sorupuan10 = @12, 1sorupuan11 = @13, 1sorupuan12 = @14, toplampuan1 = @15 where ogrno = '" + ogr + "'", baglan);
guncelle.Parameters.AddWithValue("@3", a1);
guncelle.Parameters.AddWithValue("@4", a2);
guncelle.Parameters.AddWithValue("@5", a3);
guncelle.Parameters.AddWithValue("@6", a4);
guncelle.Parameters.AddWithValue("@7", a5);
guncelle.Parameters.AddWithValue("@8", a6);
guncelle.Parameters.AddWithValue("@9", a7);
guncelle.Parameters.AddWithValue("@10", a8);
guncelle.Parameters.AddWithValue("@11", a9);
guncelle.Parameters.AddWithValue("@12", a10);
guncelle.Parameters.AddWithValue("@13", a11);
guncelle.Parameters.AddWithValue("@14", a12);
guncelle.Parameters.AddWithValue("@15", atoplam);

this.da.UpdateCommand = guncelle;
this.da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
this.da.Update(ds, ""tarih");
this.ds.AcceptChanges();
baglan.close();
Gerhard_Louis 16-May-15 3:42am View    
[toplampuan1], [derece1] are joint tables?