baldur

baldur

  • NA
  • 4
  • 0

Need help with Inserting data into a SQL db

Jun 25 2004 11:49 AM
Excuse my English. I am totally new to Windows Forms and database Access I am sorry.... This is the code I have for looking up in the database: oleDbDataAdapter1.SelectCommand.Parameters["simi"].Value = simi.Text; dataSet11.Clear(); oleDbDataAdapter1.Fill(dataSet11); And this is how I have been trying to add stuff into the database: oleDbDataAdapter1.InsertCommand.Parameters["nafn"].Value = nafn.Text; oleDbDataAdapter1.InsertCommand.Parameters["heimilisfang"].Value = heimili.Text; oleDbDataAdapter1.InsertCommand.Parameters["simi"].Value = simi.Text; Can any of you geniouses tell me what I am doing wrong ?

Answers (2)