I'm new to connecting to DB's and i'm playing with a test DB and trying to insert a record. My code runs but always gives errors, i've got past infinity errors already but keep coming across more. Here's my code:
odbcCommand1.CommandType = CommandType.Text;
odbcCommand1.CommandText =
"INSERT INTO Churches (Name, Address1, Address2, Address3, PostCode) "+
"VALUES(textBox1.Text(?),textBox2.Text(?),textBox3.Text(?),textBox4.Text(?),textBox5.Text(?))";
odbcCommand1.Parameters.Add("@Name",
OdbcType.Text);
odbcCommand1.Parameters.Add("@Address1",
OdbcType.Text);
odbcCommand1.Parameters.Add("@Address2",
OdbcType.Text);
odbcCommand1.Parameters.Add("@Address3",
OdbcType.Text);
odbcCommand1.Parameters.Add("@PostCode",
OdbcType.Text);